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
compiler: gcc
dist: trusty
matrix:
include:
- env:
- BUILD=Debug
- BINDIR=debug
- env:
- BUILD=Release
- os: linux
dist: trusty
compiler: clang
env:
- CC=clang
- CXX=clang++
- BUILDTYPE=Release
- BINDIR=bin
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
- 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
script:
- cd build