Permalink
Fetching contributors…
Cannot retrieve contributors at this time
70 lines (61 sloc) 1.59 KB
sudo: required
dist: xenial
group: edge
notifications:
irc:
channels:
- "irc.uvt.nl#gitlama"
template:
- "%{repository_slug}#%{build_number} %{message} --> %{build_url}"
skip_join: true
language: cpp
matrix:
include:
- os: linux
cache: ccache
compiler: gcc
env:
- SCAN=echo
- os: linux
cache: ccache
compiler: clang++
env:
- SCAN=scan-build
- OPENMPFLAG=--disable-openmp
- os: osx
cache: ccache
compiler: clang++
env:
- SCAN=echo
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo apt-get update;
sudo apt-get install pkg-config autoconf-archive ccache cppcheck libicu-dev libxml2-dev libbz2-dev zlib1g-dev libtar-dev libboost-dev libboost-regex-dev;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update;
brew install pkg-config;
brew install autoconf-archive;
brew outdated || brew upgrade icu4c;
brew outdated || brew upgrade libxml2;
brew outdated || brew install bzip2;
brew outdated || brew install zlib;
brew install libtar;
brew install cppcheck;
brew install ccache;
brew outdated boost || brew upgrade boost;
fi
- export PATH="/usr/lib/ccache/bin/:$PATH"
install:
- bash bootstrap.sh
- ./configure $OPENMPFLAG
- cppcheck --enable=all --quiet --error-exitcode=0 .
- $SCAN --status-bugs ./configure
- $SCAN --status-bugs make
- make
- sudo make install
script:
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib make check
after_failure:
- cat src/test-suite.log
- cat config.log