lzw-assignment/.travis.yml

61 lines
1.3 KiB
YAML
Raw 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:
apt:
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-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:
BUILD_TYPE=Debug
BIN_DIR=debug
CC=clang-5.0
CXX=clang++-5.0
- env:
BUILD_TYPE=Release
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-05-03 10:40:56 +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-05-03 10:40:56 +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
# OSX Clang
- os: osx
osx_image: xcode8
env:
BUILD_TYPE=Release
BIN_DIR=bin
2018-05-03 10:51:28 +00:00
install:
brew install cmake
2018-05-03 10:48:18 +00:00
- os: osx
osx_image: xcode8
env:
BUILD_TYPE=Debug
BIN_DIR=debug
2018-05-03 10:51:28 +00:00
install:
brew install cmake
2018-05-03 10:12:15 +00:00
script:
- cd build
- cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
- make -j
- ../$BIN_DIR/projet_lzw -c -i ../$BIN_DIR/projet_lzw