Merge pull request #3 from Phundrak/test-travis

Update TravisCI
This commit is contained in:
Phuntsok Drak-pa 2018-05-03 13:27:20 +02:00 committed by GitHub
commit 4e8012a6dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,18 +3,62 @@ language: cpp
compiler: clang compiler: clang
os: linux os: linux
dist: trusty dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- g++-7
- clang-5.0
matrix: matrix:
include: include:
- script: # Linux Clang C++17
- cd build - env:
- cmake -DCMAKE_BUILD_TYPE=Debug .. BUILD_TYPE=Debug
- make -j BIN_DIR=debug
- script: CC=clang-5.0
- cd build CXX=clang++-5.0
- cmake -DCMAKE_BUILD_TYPE=Release .. - env:
- make -j BUILD_TYPE=Release
BIN_DIR=bin
CC=clang-5.0
CXX=clang++-5.0
notifications: # Linux GCC C++17
email: - env:
- phundrak@phundrak.fr - MATRIX_EVAL="BUILD_TYPE=Debug && BIN_DIR=debug && CC=gcc-7 && CXX=g++-7"
compiler: gcc
before_install:
- eval "${MATRIX_EVAL}"
- env:
- MATRIX_EVAL="BUILD_TYPE=Release && BIN_DIR=bin && CC=gcc-7 && CXX=g++-7"
compiler: gcc
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
- ../$BIN_DIR/projet_lzw -c -i ../$BIN_DIR/projet_lzw