better sudoless clang-3.5 install
This commit is contained in:
parent
ea6f217ad9
commit
45e244b7ef
2 changed files with 13 additions and 3 deletions
15
.travis.yml
15
.travis.yml
|
@ -4,6 +4,13 @@ sudo: false
|
|||
|
||||
addons:
|
||||
postgresql: "9.3"
|
||||
# http://docs.travis-ci.com/user/apt/
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
- llvm-toolchain-precise-3.5
|
||||
packages:
|
||||
- clang-3.5
|
||||
|
||||
matrix:
|
||||
include:
|
||||
|
@ -24,7 +31,12 @@ before_install:
|
|||
- export COVERAGE=${COVERAGE:-false}
|
||||
|
||||
install:
|
||||
- if [[ $(uname -s) == 'Linux' ]]; then psql -U postgres -c 'create database template_postgis;' -U postgres; psql -U postgres -c 'create extension postgis;' -d template_postgis -U postgres; fi;
|
||||
- if [[ $(uname -s) == 'Linux' ]]; then
|
||||
psql -U postgres -c 'create database template_postgis;' -U postgres;
|
||||
psql -U postgres -c 'create extension postgis;' -d template_postgis -U postgres;
|
||||
export CXX="clang++-3.5";
|
||||
export CC="clang-3.5";
|
||||
fi;
|
||||
|
||||
script:
|
||||
- source bootstrap.sh
|
||||
|
@ -34,7 +46,6 @@ script:
|
|||
- git clone --depth=1 https://github.com/mapbox/mapnik-test-data tests/data/mapnik-test-data
|
||||
- make test
|
||||
- if [[ ${COVERAGE} == true ]]; then
|
||||
brew update;
|
||||
brew install pyenv;
|
||||
eval "$(pyenv init -)";
|
||||
pyenv install 2.7.6;
|
||||
|
|
|
@ -20,7 +20,6 @@ function setup_mason() {
|
|||
(cd ./.mason && git pull)
|
||||
fi
|
||||
export MASON_DIR=$(pwd)/.mason
|
||||
if [[ $(uname -s) == 'Linux' ]]; then source ./.mason/scripts/setup_cpp11_toolchain.sh; fi
|
||||
export PATH=$(pwd)/.mason:$PATH
|
||||
export CXX=${CXX:-clang++}
|
||||
export CC=${CC:-clang}
|
||||
|
|
Loading…
Add table
Reference in a new issue