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
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