jsoncpp/.travis.yml

60 lines
1.7 KiB
YAML
Raw Normal View History

# Build matrix / environment variable are explained on:
# http://about.travis-ci.org/docs/user/build-configuration/
# This file can be validated on:
# http://lint.travis-ci.org/
# See also
# http://stackoverflow.com/questions/22111549/travis-ci-with-clang-3-4-and-c11/30925448#30925448
# to allow C++11, though we are not yet building with -std=c++11
#before_install: pyenv install 3.5.4 && pyenv global 3.5.4
before_install: pyenv global 3.6
# https://docs.travis-ci.com/user/languages/python/
# "for Trusty, this means 2.7.6 and 3.4.3"
install:
2017-06-26 06:11:51 +02:00
- if [[ $TRAVIS_OS_NAME == osx ]]; then
brew update;
brew install python3 ninja;
python3 -m venv venv;
source venv/bin/activate;
elif [[ $TRAVIS_OS_NAME == linux ]]; then
wget https://github.com/ninja-build/ninja/releases/download/v1.7.2/ninja-linux.zip;
unzip -q ninja-linux.zip -d build;
fi
- pip3 install meson
2015-07-12 16:53:40 +02:00
# /usr/bin/gcc is 4.6 always, but gcc-X.Y is available.
2017-06-26 06:11:51 +02:00
- if [[ $CXX = g++ ]]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
# /usr/bin/clang has a conflict with gcc, so use clang-X.Y.
2017-06-26 06:11:51 +02:00
- if [[ $CXX = clang++ ]]; then export CXX="clang++-3.5" CC="clang-3.5"; fi
2015-07-12 16:53:40 +02:00
- echo ${PATH}
- ls /usr/local
- ls /usr/local/bin
2017-06-26 06:11:51 +02:00
- export PATH="${PWD}"/build:/usr/local/bin:/usr/bin:${PATH}
2015-07-12 16:53:40 +02:00
- echo ${CXX}
- ${CXX} --version
- which valgrind
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.5
packages:
2015-07-12 16:53:40 +02:00
- gcc-4.9
- g++-4.9
- clang-3.5
2015-07-11 21:09:52 +02:00
- valgrind
os:
- linux
language: cpp
compiler:
- gcc
- clang
script: ./travis.sh
env:
matrix:
2017-06-26 06:11:51 +02:00
- LIB_TYPE=static BUILD_TYPE=release
- LIB_TYPE=shared BUILD_TYPE=debug
notifications:
2015-07-12 16:53:40 +02:00
email: false
2017-06-26 06:11:51 +02:00
dist: trusty
sudo: false