cache mason_packages + make cpp-coverage install cross platform

This commit is contained in:
Dane Springmeyer 2015-04-26 22:06:20 +02:00
parent 45e244b7ef
commit 97347bb9e5

View file

@ -12,6 +12,10 @@ addons:
packages: packages:
- clang-3.5 - clang-3.5
cache:
directories:
- mason_packages
matrix: matrix:
include: include:
- os: osx - os: osx
@ -45,14 +49,7 @@ script:
- git clone --depth=1 https://github.com/mapnik/test-data test-data - git clone --depth=1 https://github.com/mapnik/test-data test-data
- git clone --depth=1 https://github.com/mapbox/mapnik-test-data tests/data/mapnik-test-data - git clone --depth=1 https://github.com/mapbox/mapnik-test-data tests/data/mapnik-test-data
- make test - make test
- if [[ ${COVERAGE} == true ]]; then - PYTHONUSERBASE=$(pwd)/mason_packages/.link pip install --user cpp-coveralls
brew install pyenv; - export PYTHONPATH=$(pwd)/mason_packages/.link/lib/python/site-packages/
eval "$(pyenv init -)"; - if [[ ${COVERAGE} == true ]]; then cpp-coveralls --build-root . --gcov-options '\-lp' --exclude mason_packages --exclude .sconf_temp --exclude benchmark --exclude deps --exclude scons --exclude test --exclude demo --exclude docs --exclude fonts --exclude utils > /dev/null; fi;
pyenv install 2.7.6;
pyenv global 2.7.6;
pyenv rehash;
pip install cpp-coveralls;
pyenv rehash;
fi;
- if [[ ${COVERAGE} == true ]]; then cpp-coveralls --build-root . --gcov-options '\-lp' --exclude mason_packages --exclude .sconf_temp --exclude benchmark --exclude deps --exclude scons --exclude tests --exclude py2cairo-1.10.0 --exclude demo --exclude docs --exclude fonts --exclude utils > /dev/null; fi;
- if [[ ${COVERAGE} != true ]]; then make bench; fi; - if [[ ${COVERAGE} != true ]]; then make bench; fi;