2016-06-03 10:16:00 +02:00
|
|
|
###########################################################################
|
|
|
|
# script.sh
|
|
|
|
# ---------------------
|
2016-09-27 13:35:50 +02:00
|
|
|
# Date : March 2016
|
|
|
|
# Copyright : (C) 2016 by Matthias Kuhn
|
|
|
|
# Email : matthias at opengis dot ch
|
2016-06-03 10:16:00 +02:00
|
|
|
###########################################################################
|
|
|
|
# #
|
|
|
|
# This program is free software; you can redistribute it and/or modify #
|
|
|
|
# it under the terms of the GNU General Public License as published by #
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or #
|
|
|
|
# (at your option) any later version. #
|
|
|
|
# #
|
|
|
|
###########################################################################
|
|
|
|
|
2016-09-27 13:35:50 +02:00
|
|
|
export PYTHONPATH=${HOME}/osgeo4travis/lib/python3.3/site-packages/
|
2016-10-19 17:11:04 +03:00
|
|
|
export PATH=${HOME}/osgeo4travis/bin:${HOME}/osgeo4travis/sbin:${HOME}/OTB-5.6.0-Linux64/bin:${PATH}
|
2016-09-27 13:35:50 +02:00
|
|
|
export LD_LIBRARY_PATH=${HOME}/osgeo4travis/lib
|
|
|
|
export CTEST_PARALLEL_LEVEL=1
|
|
|
|
export CCACHE_TEMPDIR=/tmp
|
2016-12-22 14:28:21 +01:00
|
|
|
ccache -M 2G
|
2016-03-10 18:55:06 +01:00
|
|
|
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2016-09-27 13:35:50 +02:00
|
|
|
|
2016-10-19 17:11:04 +03:00
|
|
|
# Set OTB application path (installed in before_install.sh script)
|
|
|
|
export OTB_APPLICATION_PATH=${HOME}/OTB-5.6.0-Linux64/lib/otb/applications
|
2016-11-16 16:20:43 +01:00
|
|
|
export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
|
2016-10-19 17:11:04 +03:00
|
|
|
|
2017-04-26 16:13:11 +02:00
|
|
|
export CTEST_BUILD_COMMAND="/usr/bin/make -j3 -i -k"
|
|
|
|
|
2017-04-26 16:18:20 +02:00
|
|
|
python ${TRAVIS_BUILD_DIR}/.ci/travis/scripts/ctest2travis.py \
|
2017-04-26 21:45:33 +02:00
|
|
|
xvfb-run ctest -V -E "$(cat ${DIR}/blacklist.txt | sed -r '/^(#.*?)?$/d' | paste -sd '|' -)" -S ${DIR}/../travis.ctest --output-on-failure
|