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:
|
|
|
|
- g++-6
|
|
|
|
- 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:
|
|
|
|
BUILD_TYPE=Debug
|
|
|
|
BIN_DIR=debug
|
|
|
|
compiler: gcc
|
|
|
|
before_install:
|
|
|
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
install:
|
|
|
|
- sudo apt-get install -qq g++-6
|
|
|
|
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
|
|
|
|
- env:
|
|
|
|
BUILD_TYPE=Release
|
|
|
|
BIN_DIR=bin
|
|
|
|
compiler: gcc
|
|
|
|
before_install:
|
|
|
|
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
|
|
|
- sudo apt-get update -qq
|
|
|
|
install:
|
|
|
|
- sudo apt-get install -qq g++-6
|
|
|
|
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
|
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
|