summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 84e17880c82a2415672a97d5a86bc9bf81135ac4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
dist: trusty
language: cpp

addons:
  apt:
    packages:
      - libcppunit-dev
      - libboost-dev

os:
  - linux

env:
  global:
    - MAKEFLAGS="-j2"

before_install:
  # C++14
  - 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

install:
  # C++14
  - test "$TRAVIS_OS_NAME" != "linux" || sudo apt-get install -qq g++-5

script:
  - OPTIONS="--enable-test"
  - test "$TRAVIS_OS_NAME" != "linux" || export CC=gcc-5 CXX=g++-5
  - ./autogen.sh
  - ./configure --disable-silent-rules --disable-dependency-tracking $OPTIONS
  - make
  - make check