From 0a2ea8d706c5c91e8e94d4d76e7935d6cddd22cb Mon Sep 17 00:00:00 2001 From: Phuntsok Drak-pa Date: Thu, 3 May 2018 11:55:53 +0200 Subject: [PATCH] testing travis-ci #3 --- .travis.yml | 81 ++++++++++++++++++----------------------------------- 1 file changed, 28 insertions(+), 53 deletions(-) diff --git a/.travis.yml b/.travis.yml index d2da544..4df9a22 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,58 +1,33 @@ language: cpp +os: linux +dist: trusty matrix: - include: - - os: linux - dist: trusty - compiler: clang - env: - - CC=clang - - CXX=clang++ - - BUILDTYPE=Release - - BINDIR=bin - - os: linux - dist: trusty - compiler: clang - env: - - CC=clang - - CXX=clang++ - - BUILDTYPE=Debug - - BINDIR=debug - - os: linux - dist: trusty - compiler: gcc - addons: &gcc7 - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - cmake3 - - g++7 - - gcc7 - env: - - CC=gcc7 - - CXX=g++7 - - BUILDTYPE=Release - - BINDIR=bin - - os: linux - dist: trusty - compiler: gcc - addons: &gcc7 - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - cmake3 - - g++7 - - gcc7 - env: - - CC=gcc7 - - CXX=g++7 - - BUILDTYPE=Debug - - BINDIR=debug + include: + - env: + - CC=clang-5.0 + CXX=clang++-5.0 + BUILD_TYPE=Release + BIN_DIR=bin + addons: &clang40 + apt: + packages: + - g++-5 + - clang-5.0 + sources: + - ubuntu-toolchain-r-test + - llvm-toolchain-trusty-5.0 + - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main' + key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key' + - env: + - CC=clang-5.0 + - CXX=clang++-5.0 + - BUILD_TYPE=Release + - BIN_DIR=bin + addons: *clang40 script: - - cd build - - cmake -DCMAKE_BUILD_TYPE=$BUILD .. - - make -j - - ../$BINDIR/projet_lzw -c -i ../$BINDIR/projet_lzw + - cd build + - cmake -DCMAKE_BUILD_TYPE=$BUILD .. + - make -j + - ../$BINDIR/projet_lzw -c -i ../$BINDIR/projet_lzw