branches:
  only:
    - master
    - devel
    - "1.4"
    - "2.3"
    - "2.4"
    - "2.5"
    - "2.6"
    - "2.7"
    - "2.8"
    - "3.0"
    - "3.1"
    - "3.2"

language: cpp
cache: ccache
compiler: g++
sudo: false
dist: trusty

addons:
  apt:
    sources:
    - ubuntu-toolchain-r-test
    - george-edison55-trusty-backports
    packages:
    - g++-5
    - gcc-5
    - binutils-gold
    - gdb
    - cmake-data
    - cmake

install:

# prepare environment
- export PATH="$HOME/bin:$PATH"
- export CC="$HOME/bin/gcc"
- export CXX="$HOME/bin/g++"
- export CFLAGS="-B$HOME/bin/gold $CFLAGS"
- export CXXFLAGS="-B$HOME/bin/gold $CXXFLAGS"

before_script: "bash -c Installation/travisCI/before_script.sh"
script: "bash -c Installation/travisCI/build.sh"
after_failure: "bash -c Installation/travisCI/after_failure.sh"
after_script: "bash -c Installation/travisCI/after_script.sh"

notifications:
  slack:
    secure: JrnDfdroyURrS85HIVsI4xw82taol+lvOJxduxz4T8mQuckaE3ECRYcxX7MzLJfjpeSLST5kttUiZBckHdZ/pnmraZlQ+1/b1VE6k5hFzkbeM0ShjXKTxHdudXaJKuENunMxDAjVWaBaTTh/iy8ZZbKUYQtWLtLfw3xa5zCKVaQ=
    on_success: change
    on_failure: always
