testing cloudsonar with travis

This commit is contained in:
Phuntsok Drak-pa 2018-11-21 00:52:03 +01:00
parent 2b932f3e1a
commit 652146a93a
3 changed files with 14 additions and 23 deletions

4
.gitignore vendored
View File

@ -3,3 +3,7 @@
gmon\.out
*.lzw
\.scannerwork/
bw-output/

View File

@ -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

View File

@ -1,3 +1,6 @@
all:
@mkdir -p build
@cd build && pwd && cmake -DCMAKE_BUILD_TYPE=Release .. && make
release:
@mkdir -p build
@cd build && pwd && cmake -DCMAKE_BUILD_TYPE=Release .. && make