[travis] use consistent install prefix
This commit is contained in:
parent
1e46f1155f
commit
d2239e7514
3 changed files with 5 additions and 4 deletions
|
@ -9,6 +9,7 @@ env:
|
||||||
- CCACHE_TEMPDIR=/tmp/.ccache-temp
|
- CCACHE_TEMPDIR=/tmp/.ccache-temp
|
||||||
- CCACHE_COMPRESS=1
|
- CCACHE_COMPRESS=1
|
||||||
- HEAVY_JOBS="2"
|
- HEAVY_JOBS="2"
|
||||||
|
- PREFIX=/tmp/mapnik
|
||||||
- secure: "N3a5nzzsgpuu45k8qWdYsHNxrSnqeAGLTOYpfYoAH7B94vuf7pa7XV1tQjXbxrnx2D6ryTdtUtyRKwy7zXbwXxGt4DpczWEo8f6DUd6+obAp3kdnXABg2Sj4oA7KMs0F0CmoADy0jdUZD5YyOJHu64LCIIgzEQ9q49PFMNbU3IE="
|
- secure: "N3a5nzzsgpuu45k8qWdYsHNxrSnqeAGLTOYpfYoAH7B94vuf7pa7XV1tQjXbxrnx2D6ryTdtUtyRKwy7zXbwXxGt4DpczWEo8f6DUd6+obAp3kdnXABg2Sj4oA7KMs0F0CmoADy0jdUZD5YyOJHu64LCIIgzEQ9q49PFMNbU3IE="
|
||||||
- secure: "iQYPNpMtejcgYeUkWZGIWz1msIco5qydJrhZTSCQOYahAQerdT7q5WZEpEo3G6IWOGgO1eo7GFuY8DvqQjw1+jC9b9mhkRNdo3LhGTKS9Gsbl5Q27k0rjlaFZmmQHrfPlQJwhfAIp+KLugHtQw5bCoLh+95E3j0F0DayF1tuJ3s="
|
- secure: "iQYPNpMtejcgYeUkWZGIWz1msIco5qydJrhZTSCQOYahAQerdT7q5WZEpEo3G6IWOGgO1eo7GFuY8DvqQjw1+jC9b9mhkRNdo3LhGTKS9Gsbl5Q27k0rjlaFZmmQHrfPlQJwhfAIp+KLugHtQw5bCoLh+95E3j0F0DayF1tuJ3s="
|
||||||
addons:
|
addons:
|
||||||
|
@ -45,7 +46,7 @@ matrix:
|
||||||
before_install:
|
before_install:
|
||||||
- source scripts/travis-common.sh
|
- source scripts/travis-common.sh
|
||||||
- export PYTHONUSERBASE=$(pwd)/mason_packages/.link
|
- export PYTHONUSERBASE=$(pwd)/mason_packages/.link
|
||||||
- export PATH=$(pwd)/mason_packages/.link/bin:${PYTHONUSERBASE}/bin:${PATH}
|
- export PATH=${PREFIX}/bin:$(pwd)/mason_packages/.link/bin:${PYTHONUSERBASE}/bin:${PATH}
|
||||||
- export COVERAGE=${COVERAGE:-false}
|
- export COVERAGE=${COVERAGE:-false}
|
||||||
- export MASON_PUBLISH=${MASON_PUBLISH:-false}
|
- export MASON_PUBLISH=${MASON_PUBLISH:-false}
|
||||||
- export BENCH=${BENCH:-false}
|
- export BENCH=${BENCH:-false}
|
||||||
|
|
|
@ -18,7 +18,7 @@ function mason_compile {
|
||||||
# this is to adapt to when mapnik is not installed in MASON_PREFIX
|
# this is to adapt to when mapnik is not installed in MASON_PREFIX
|
||||||
# originally (to make it easier to publish locally as a stopgap)
|
# originally (to make it easier to publish locally as a stopgap)
|
||||||
MAPNIK_PREFIX=$(mapnik-config --prefix)
|
MAPNIK_PREFIX=$(mapnik-config --prefix)
|
||||||
if [[ $(mapnik-config --prefix) != ${MASON_PREFIX} ]]; then
|
if [[ ${MAPNIK_PREFIX} != ${MASON_PREFIX} ]]; then
|
||||||
mkdir -p ${MASON_PREFIX}/lib
|
mkdir -p ${MASON_PREFIX}/lib
|
||||||
mkdir -p ${MASON_PREFIX}/include
|
mkdir -p ${MASON_PREFIX}/include
|
||||||
mkdir -p ${MASON_PREFIX}/bin
|
mkdir -p ${MASON_PREFIX}/bin
|
||||||
|
|
|
@ -81,10 +81,10 @@ config_override () {
|
||||||
|
|
||||||
configure () {
|
configure () {
|
||||||
if enabled ${COVERAGE}; then
|
if enabled ${COVERAGE}; then
|
||||||
./configure "$@" PGSQL2SQLITE=False SVG2PNG=False SVG_RENDERER=False \
|
./configure "$@" PREFIX=${PREFIX} PGSQL2SQLITE=False SVG2PNG=False SVG_RENDERER=False \
|
||||||
COVERAGE=True DEBUG=True WARNING_CXXFLAGS="-Wno-unknown-warning-option"
|
COVERAGE=True DEBUG=True WARNING_CXXFLAGS="-Wno-unknown-warning-option"
|
||||||
else
|
else
|
||||||
./configure "$@" PREFIX=/tmp/mapnik WARNING_CXXFLAGS="-Wno-unknown-warning-option"
|
./configure "$@" PREFIX=${PREFIX} WARNING_CXXFLAGS="-Wno-unknown-warning-option"
|
||||||
fi
|
fi
|
||||||
# print final config values, sorted and indented
|
# print final config values, sorted and indented
|
||||||
sort -sk1,1 ./config.py | sed -e 's/^/ /'
|
sort -sk1,1 ./config.py | sed -e 's/^/ /'
|
||||||
|
|
Loading…
Reference in a new issue