From 43ab47d9274b31f7028f81fac09c015547fb3f4b Mon Sep 17 00:00:00 2001 From: Phuntsok Drak-pa Date: Thu, 3 May 2018 11:28:38 +0200 Subject: [PATCH] testing travis-ci #1 --- .travis.yml | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/.travis.yml b/.travis.yml index 32cafe0..c2730d6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,20 +1,28 @@ -sudo: false language: cpp -compiler: clang -os: linux +compiler: gcc dist: trusty matrix: - include: - - script: - - cd build - - cmake -DCMAKE_BUILD_TYPE=Debug .. - - make -j - - script: - - cd build - - cmake -DCMAKE_BUILD_TYPE=Release .. - - make -j + include: + - env: + - BUILD=Debug + - BINDIR=debug + - env: + - BUILD=Release + - BINDIR=bin -notifications: - email: - - phundrak@phundrak.fr +before_install: + #C++17 + - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test + - sudo apt-get update -qq + +install: + #C++17 + - sudo apt-get install -qq g++-6 + - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90 + +script: + - cd build + - cmake -DCMAKE_BUILD_TYPE=$BUILD .. + - make -j + - ../$BINDIR/projet_lzw -c -i ../$BINDIR/projet_lzw