2017-04-27 19:43:05 +02:00
|
|
|
dist: trusty
|
|
|
|
language: cpp
|
|
|
|
|
|
|
|
addons:
|
2017-05-17 15:27:40 +02:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libcppunit-dev
|
|
|
|
- libboost-dev
|
2017-04-27 19:43:05 +02:00
|
|
|
|
|
|
|
os:
|
2017-05-17 15:27:40 +02:00
|
|
|
- linux
|
2017-05-17 16:54:02 +02:00
|
|
|
- osx
|
2017-04-27 19:43:05 +02:00
|
|
|
|
2017-05-17 15:36:59 +02:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- MAKEFLAGS="-j2"
|
|
|
|
|
2017-04-27 19:43:05 +02:00
|
|
|
before_install:
|
|
|
|
# C++14
|
2017-05-17 15:55:25 +02:00
|
|
|
- test "$TRAVIS_OS_NAME" != "linux" || sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
|
|
|
- test "$TRAVIS_OS_NAME" != "linux" || sudo apt-get update -qq
|
2017-05-17 16:54:02 +02:00
|
|
|
- test "$TRAVIS_OS_NAME" != "osx" || brew update
|
2017-04-27 19:43:05 +02:00
|
|
|
|
|
|
|
install:
|
|
|
|
# C++14
|
2017-05-17 15:55:25 +02:00
|
|
|
- test "$TRAVIS_OS_NAME" != "linux" || sudo apt-get install -qq g++-5
|
2017-05-17 16:54:02 +02:00
|
|
|
- test "$TRAVIS_OS_NAME" != "osx" || brew install cppunit
|
2017-04-27 19:43:05 +02:00
|
|
|
|
|
|
|
script:
|
2017-05-19 19:34:25 +02:00
|
|
|
- OPTIONS="--enable-test"
|
2017-05-17 15:55:25 +02:00
|
|
|
- test "$TRAVIS_OS_NAME" != "linux" || export CC=gcc-5 CXX=g++-5
|
2017-05-17 16:54:02 +02:00
|
|
|
- test "$TRAVIS_OS_NAME" != "osx" || OPTIONS="$OPTIONS --enable-osx"
|
2017-05-17 15:27:40 +02:00
|
|
|
- ./autogen.sh
|
2017-05-19 19:34:25 +02:00
|
|
|
- ./configure --disable-silent-rules --disable-dependency-tracking $OPTIONS
|
2017-05-17 15:27:40 +02:00
|
|
|
- make
|
|
|
|
- make check
|