2014-12-15 08:38:42 +03:00
|
|
|
language: cpp
|
2016-02-16 17:30:10 +03:00
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
2014-12-15 07:31:50 +03:00
|
|
|
matrix:
|
2014-12-15 07:37:49 +03:00
|
|
|
include:
|
|
|
|
- compiler: clang
|
2016-07-21 19:01:42 +03:00
|
|
|
os: linux
|
2014-12-15 07:37:49 +03:00
|
|
|
- compiler: gcc
|
2016-02-16 17:30:10 +03:00
|
|
|
env: COMPILER_CXX=g++-4.8 COMPILER_CC=gcc-4.8
|
2016-07-21 19:01:42 +03:00
|
|
|
os: linux
|
2014-12-15 07:53:25 +03:00
|
|
|
- compiler: gcc
|
|
|
|
env: HOST=i686-w64-mingw32
|
2016-07-21 19:01:42 +03:00
|
|
|
os: linux
|
|
|
|
- compiler: clang
|
|
|
|
os: osx
|
2016-07-25 15:52:37 +03:00
|
|
|
- compiler: clang
|
|
|
|
env: SCAN_BUILD=true
|
|
|
|
os: linux
|
|
|
|
- compiler: gcc
|
|
|
|
env: COMPILER_CXX=g++-4.8 COMPILER_CC=gcc-4.8
|
|
|
|
env: SCAN_BUILD=true
|
|
|
|
os: linux
|
|
|
|
- compiler: clang
|
|
|
|
env: SCAN_BUILD=true
|
|
|
|
os: osx
|
2016-07-21 19:01:42 +03:00
|
|
|
exclude:
|
|
|
|
- os: osx
|
|
|
|
compiler: gcc
|
|
|
|
- os: linux
|
|
|
|
compiler: gcc
|
|
|
|
env:
|
|
|
|
|
2013-07-09 07:29:07 +04:00
|
|
|
before_install:
|
2016-07-25 15:52:37 +03:00
|
|
|
- if [[ -n $SCAN_BUILD ]]; then
|
|
|
|
if [[ $TRAVIS_OS_NAME = "osx" ]]; then
|
|
|
|
. scan-build-install.sh;
|
|
|
|
else
|
|
|
|
export SCAN_BUILD_PATH=scan-build;
|
|
|
|
fi
|
|
|
|
fi
|
2016-07-21 19:01:42 +03:00
|
|
|
- if [[ $TRAVIS_OS_NAME = "linux" ]]; then
|
|
|
|
sudo apt-get update -qq;
|
|
|
|
fi
|
|
|
|
- if [[ $TRAVIS_OS_NAME = "linux" ]]; then
|
|
|
|
if [ -z "$HOST" ]; then
|
|
|
|
sudo apt-get install -y libpulse-dev libasound2-dev pulseaudio doxygen;
|
|
|
|
fi
|
2014-12-15 08:36:06 +03:00
|
|
|
fi
|
2016-07-21 19:01:42 +03:00
|
|
|
- if [[ $TRAVIS_OS_NAME = "linux" ]]; then
|
|
|
|
if [ ! -z "$HOST" ]; then
|
|
|
|
sudo apt-get install -qq mingw-w64 g++-mingw-w64 binutils-mingw-w64;
|
|
|
|
wget http://mirrors.kernel.org/ubuntu/pool/universe/m/mingw-w64/mingw-w64-tools_3.1.0-1_amd64.deb;
|
|
|
|
sudo dpkg -i mingw-w64-tools_3.1.0-1_amd64.deb;
|
|
|
|
fi
|
2014-12-15 08:36:06 +03:00
|
|
|
fi
|
|
|
|
before_script:
|
2016-07-21 19:01:42 +03:00
|
|
|
- if [[ $TRAVIS_OS_NAME = "linux" ]]; then
|
|
|
|
if [ ! -z "$HOST" ]; then
|
|
|
|
unset CC;
|
|
|
|
unset CXX;
|
|
|
|
fi
|
2014-12-15 08:36:06 +03:00
|
|
|
fi
|
2016-07-21 19:01:42 +03:00
|
|
|
- if [[ $TRAVIS_OS_NAME = "linux" ]]; then
|
|
|
|
if [ -z "$COMPILER_CXX"]; then
|
|
|
|
export CC=$COMPILER_CC;
|
|
|
|
export CXX=$COMPILER_CXX;
|
|
|
|
fi
|
2016-02-16 17:30:10 +03:00
|
|
|
fi
|
2014-12-15 08:36:06 +03:00
|
|
|
- autoreconf -i
|
2016-07-25 15:52:37 +03:00
|
|
|
- $SCAN_BUILD_PATH ./configure --host=$HOST
|
2014-12-15 07:37:49 +03:00
|
|
|
script:
|
2016-07-25 15:52:37 +03:00
|
|
|
- echo $SCAN_BUILD_PATH
|
|
|
|
- $SCAN_BUILD_PATH make
|
2016-07-21 19:01:42 +03:00
|
|
|
- if [ -z "$HOST" ]; then
|
|
|
|
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
|
|
|
|
make check;
|
|
|
|
cat test/*.log;
|
|
|
|
fi
|
2014-12-15 08:36:06 +03:00
|
|
|
fi
|
2016-02-16 17:30:10 +03:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- clang
|
|
|
|
- g++-4.8
|
|
|
|
- gcc-4.8
|