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
|
||||
|
||||
*.lzw
|
||||
|
||||
\.scannerwork/
|
||||
|
||||
bw-output/
|
||||
|
30
.travis.yml
30
.travis.yml
@ -4,6 +4,10 @@ compiler: clang
|
||||
os: linux
|
||||
dist: trusty
|
||||
addons:
|
||||
sonarcloud:
|
||||
organization: "phundrak-github"
|
||||
token:
|
||||
secure: ${SONAR_TOKEN}
|
||||
apt:
|
||||
config:
|
||||
retries: true
|
||||
@ -13,7 +17,6 @@ addons:
|
||||
packages:
|
||||
- g++-7
|
||||
- clang-5.0
|
||||
|
||||
matrix:
|
||||
include:
|
||||
# Linux Clang C++17
|
||||
@ -40,26 +43,7 @@ matrix:
|
||||
before_install:
|
||||
- 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:
|
||||
- cd build
|
||||
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
|
||||
- make -j
|
||||
- make $BUILD_TYPE
|
||||
- sonar-scanner -Dsonar.projectKey=Phundrak_lzw-assignment -Dsonar.sources=./src/ -Dsonar.cfamily.build-wrapper-output=bw-output
|
||||
-Dsonar.host.url=https://sonarcloud.io
|
||||
|
Loading…
Reference in New Issue
Block a user