testing travis-ci #3

This commit is contained in:
Phuntsok Drak-pa 2018-05-03 11:55:53 +02:00
parent 877a1d1ebd
commit 0a2ea8d706

View File

@ -1,58 +1,33 @@
language: cpp language: cpp
os: linux
dist: trusty
matrix: matrix:
include: include:
- os: linux - env:
dist: trusty - CC=clang-5.0
compiler: clang CXX=clang++-5.0
env: BUILD_TYPE=Release
- CC=clang BIN_DIR=bin
- CXX=clang++ addons: &clang40
- BUILDTYPE=Release apt:
- BINDIR=bin packages:
- os: linux - g++-5
dist: trusty - clang-5.0
compiler: clang sources:
env: - ubuntu-toolchain-r-test
- CC=clang - llvm-toolchain-trusty-5.0
- CXX=clang++ - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main'
- BUILDTYPE=Debug key_url: 'https://apt.llvm.org/llvm-snapshot.gpg.key'
- BINDIR=debug - env:
- os: linux - CC=clang-5.0
dist: trusty - CXX=clang++-5.0
compiler: gcc - BUILD_TYPE=Release
addons: &gcc7 - BIN_DIR=bin
apt: addons: *clang40
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
script: script:
- cd build - cd build
- cmake -DCMAKE_BUILD_TYPE=$BUILD .. - cmake -DCMAKE_BUILD_TYPE=$BUILD ..
- make -j - make -j
- ../$BINDIR/projet_lzw -c -i ../$BINDIR/projet_lzw - ../$BINDIR/projet_lzw -c -i ../$BINDIR/projet_lzw