testing travis-ci #2

This commit is contained in:
Phuntsok Drak-pa 2018-05-03 11:42:10 +02:00
parent 43ab47d927
commit 877a1d1ebd
1 changed files with 47 additions and 17 deletions

View File

@ -1,25 +1,55 @@
language: cpp language: cpp
compiler: gcc
dist: trusty
matrix: matrix:
include: include:
- env: - os: linux
- BUILD=Debug dist: trusty
- BINDIR=debug compiler: clang
- env: env:
- BUILD=Release - CC=clang
- CXX=clang++
- BUILDTYPE=Release
- BINDIR=bin - BINDIR=bin
- os: linux
before_install: dist: trusty
#C++17 compiler: clang
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test env:
- sudo apt-get update -qq - CC=clang
- CXX=clang++
install: - BUILDTYPE=Debug
#C++17 - BINDIR=debug
- sudo apt-get install -qq g++-6 - os: linux
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90 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
script: script:
- cd build - cd build