jsoncpp/.travis.yml
Hans Johnson fa61a49b83 ENH: Use recommended homebrew addon for travis.
Remove unnecessary python3 environment from osx that
made configuring the test environment slower.

Use "addon:" features for installing homebrew
packages more efficiently.

Re-organized the .travis.yml file in a standard
order so that the "before-install" and "install"
steps occur after the configurations of addons and
 matrix, and language features are set.
2019-01-12 10:35:25 -06:00

48 lines
1.3 KiB
YAML

# Build matrix / environment variables 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
language: cpp
sudo: false
addons:
homebrew:
packages: meson ninja
update: false # do not update homebrew by default
apt:
sources:
#- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.5
packages:
#- gcc-4.9
#- g++-4.9
- clang-3.5
- valgrind
matrix:
allow_failures:
- os: osx
include:
- os: osx
osx_image: xcode9.4
compiler: clang
addons:
homebrew:
packages: meson ninja
#env: PYENV_ROOT=/usr/local/var/pyenv
env: LIB_TYPE=static BUILD_TYPE=release HOMEBREW_LOGS=~/homebrew-logs HOMEBREW_TEMP=~/homebrew-temp
#- LIB_TYPE=shared BUILD_TYPE=debug
- os: linux
dist: trusty
compiler: clang
env: LIB_TYPE=static BUILD_TYPE=release
notifications:
email: false
before_install:
- source ./travis.before_install.${TRAVIS_OS_NAME}.sh
install:
- source ./travis.install.${TRAVIS_OS_NAME}.sh
script: ./travis.sh