testing cloudsonar with travis
This commit is contained in:
parent
2b932f3e1a
commit
652146a93a
4
.gitignore
vendored
4
.gitignore
vendored
@ -3,3 +3,7 @@
|
|||||||
gmon\.out
|
gmon\.out
|
||||||
|
|
||||||
*.lzw
|
*.lzw
|
||||||
|
|
||||||
|
\.scannerwork/
|
||||||
|
|
||||||
|
bw-output/
|
||||||
|
30
.travis.yml
30
.travis.yml
@ -4,6 +4,10 @@ compiler: clang
|
|||||||
os: linux
|
os: linux
|
||||||
dist: trusty
|
dist: trusty
|
||||||
addons:
|
addons:
|
||||||
|
sonarcloud:
|
||||||
|
organization: "phundrak-github"
|
||||||
|
token:
|
||||||
|
secure: ${SONAR_TOKEN}
|
||||||
apt:
|
apt:
|
||||||
config:
|
config:
|
||||||
retries: true
|
retries: true
|
||||||
@ -13,7 +17,6 @@ addons:
|
|||||||
packages:
|
packages:
|
||||||
- g++-7
|
- g++-7
|
||||||
- clang-5.0
|
- clang-5.0
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
# Linux Clang C++17
|
# Linux Clang C++17
|
||||||
@ -40,26 +43,7 @@ matrix:
|
|||||||
before_install:
|
before_install:
|
||||||
- eval "${MATRIX_EVAL}"
|
- eval "${MATRIX_EVAL}"
|
||||||
|
|
||||||
# OSX Clang
|
|
||||||
# - os: osx
|
|
||||||
# osx_image: xcode9.3
|
|
||||||
# env:
|
|
||||||
# BUILD_TYPE=Release
|
|
||||||
# BIN_DIR=bin
|
|
||||||
# before_install:
|
|
||||||
# - brew update
|
|
||||||
# install:
|
|
||||||
# brew upgrade cmake
|
|
||||||
# - os: osx
|
|
||||||
# osx_image: xcode9.3
|
|
||||||
# env:
|
|
||||||
# BUILD_TYPE=Debug
|
|
||||||
# BIN_DIR=debug
|
|
||||||
# before_install:
|
|
||||||
# brew update
|
|
||||||
# install:
|
|
||||||
# brew upgrade cmake
|
|
||||||
script:
|
script:
|
||||||
- cd build
|
- make $BUILD_TYPE
|
||||||
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
|
- sonar-scanner -Dsonar.projectKey=Phundrak_lzw-assignment -Dsonar.sources=./src/ -Dsonar.cfamily.build-wrapper-output=bw-output
|
||||||
- make -j
|
-Dsonar.host.url=https://sonarcloud.io
|
||||||
|
Loading…
Reference in New Issue
Block a user