lzw-assignment/.travis.yml

52 lines
1.3 KiB
YAML
Raw Permalink Normal View History

2018-05-03 10:04:43 +00:00
sudo: false
2018-04-06 02:15:11 +00:00
language: cpp
2018-05-03 10:04:43 +00:00
compiler: clang
2018-05-03 09:55:53 +00:00
os: linux
dist: trusty
2018-05-03 10:12:15 +00:00
addons:
2018-11-20 23:52:03 +00:00
sonarcloud:
organization: "phundrak-github"
token:
secure: ${SONAR_TOKEN}
2018-05-03 10:12:15 +00:00
apt:
2018-06-18 15:10:49 +00:00
config:
retries: true
2018-05-03 10:12:15 +00:00
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
2018-05-03 10:29:37 +00:00
- g++-7
2018-05-03 10:12:15 +00:00
- clang-5.0
2018-11-20 23:59:02 +00:00
cache:
apt: true
2018-04-08 13:13:40 +00:00
matrix:
2018-05-03 10:04:43 +00:00
include:
2018-05-03 10:20:17 +00:00
# Linux Clang C++17
2018-05-03 10:12:15 +00:00
- env:
2018-11-21 00:21:13 +00:00
BUILD_TYPE=debug
2018-05-03 10:12:15 +00:00
BIN_DIR=debug
CC=clang-5.0
CXX=clang++-5.0
- env:
2018-11-21 00:21:13 +00:00
BUILD_TYPE=release
2018-05-03 10:12:15 +00:00
BIN_DIR=bin
CC=clang-5.0
CXX=clang++-5.0
2018-05-03 10:20:17 +00:00
# Linux GCC C++17
- env:
2018-11-21 00:13:37 +00:00
- MATRIX_EVAL="BUILD_TYPE=debug && BIN_DIR=debug && CC=gcc-7 && CXX=g++-7"
2018-05-03 10:20:17 +00:00
compiler: gcc
2018-05-03 10:40:56 +00:00
before_install:
- eval "${MATRIX_EVAL}"
2018-05-03 10:20:17 +00:00
- env:
2018-11-21 00:13:37 +00:00
- MATRIX_EVAL="BUILD_TYPE=release && BIN_DIR=bin && CC=gcc-7 && CXX=g++-7"
2018-05-03 10:20:17 +00:00
compiler: gcc
2018-05-03 10:40:56 +00:00
before_install:
- eval "${MATRIX_EVAL}"
2018-05-03 10:48:18 +00:00
2018-05-03 10:12:15 +00:00
script:
2018-11-20 23:52:03 +00:00
- make $BUILD_TYPE
2018-11-21 00:05:46 +00:00
- build-wrapper-linux-x86-64 --out-dir bw-output make clean all
2018-11-20 23:56:35 +00:00
- sonar-scanner -Dsonar.projectKey=Phundrak_lzw-assignment -Dsonar.sources=./src/ -Dsonar.cfamily.build-wrapper-output=bw-output -Dsonar.host.url=https://sonarcloud.io