cubeb/.travis.yml

88 строки
2.1 KiB
YAML
Исходник Обычный вид История

language: cpp
2016-02-16 17:30:10 +03:00
dist: trusty
sudo: required
matrix:
include:
- compiler: clang
2016-07-21 19:01:42 +03:00
os: linux
- 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
- compiler: gcc
env: HOST=i686-w64-mingw32
2016-07-21 19:01:42 +03:00
os: linux
- compiler: clang
os: osx
- 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:
before_install:
- 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
- $SCAN_BUILD_PATH ./configure --host=$HOST
script:
- 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