Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[processing] run OTB tests on Travis
(partially cherry-picked from b9d5b2c)
- Loading branch information
|
@@ -20,5 +20,9 @@ pushd ${HOME} |
|
|
curl -L https://github.com/opengisch/osgeo4travis/archive/qt4bin.tar.gz | tar -xzC /home/travis --strip-components=1 |
|
|
curl -L https://cmake.org/files/v3.5/cmake-3.5.0-Linux-x86_64.tar.gz | tar --strip-components=1 -zxC /home/travis/osgeo4travis |
|
|
|
|
|
# Download OTB package for Processing tests |
|
|
wget https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-5.6.0-Linux64.run -O /home/travis/OTB-5.6.0-Linux64.run && sh /home/travis/OTB-5.6.0-Linux64.run |
|
|
|
|
|
popd |
|
|
|
|
|
pip install --user autopep8 nose2 pyyaml mock future |
|
@@ -14,7 +14,7 @@ |
|
|
########################################################################### |
|
|
|
|
|
export PYTHONPATH=${HOME}/osgeo4travis/lib/python2.7/site-packages/ |
|
|
export PATH=${HOME}/osgeo4travis/bin:${HOME}/osgeo4travis/sbin:${PATH} |
|
|
export PATH=${HOME}/osgeo4travis/bin:${HOME}/osgeo4travis/sbin:${HOME}/OTB-5.6.0-Linux64/bin:${PATH} |
|
|
export LD_LIBRARY_PATH=${HOME}/osgeo4travis/lib |
|
|
export CTEST_PARALLEL_LEVEL=1 |
|
|
export CCACHE_CPP2=yes |
|
@@ -24,4 +24,7 @@ if [ "${TRAVIS_PULL_REQUEST}" != "false" ]; then |
|
|
chmod -R ugo-w ~/.ccache |
|
|
fi |
|
|
|
|
|
# Set OTB application path (installed in before_install.sh script) |
|
|
export OTB_APPLICATION_PATH=${HOME}/OTB-5.6.0-Linux64/lib/otb/applications |
|
|
|
|
|
xvfb-run ctest -V -E 'qgis_filedownloader|qgis_openstreetmaptest|qgis_wcsprovidertest|qgis_ziplayertest|PyQgsDBManagerGpkg' -S ./qgis-test-travis.ctest --output-on-failure |
|
@@ -26,6 +26,10 @@ pushd ${HOME} |
|
|
|
|
|
curl -L https://github.com/opengisch/osgeo4travis/archive/qt5bin.tar.gz | tar -xzC /home/travis --strip-components=1 |
|
|
curl -L https://cmake.org/files/v3.5/cmake-3.5.0-Linux-x86_64.tar.gz | tar --strip-components=1 -zxC /home/travis/osgeo4travis |
|
|
|
|
|
# Download OTB package for Processing tests |
|
|
wget https://www.orfeo-toolbox.org/packages/archives/OTB/OTB-5.6.0-Linux64.run -O /home/travis/OTB-5.6.0-Linux64.run && sh /home/travis/OTB-5.6.0-Linux64.run |
|
|
|
|
|
popd |
|
|
|
|
|
pip install psycopg2 numpy nose2 pyyaml mock future |
|
@@ -14,7 +14,7 @@ |
|
|
########################################################################### |
|
|
|
|
|
export PYTHONPATH=${HOME}/osgeo4travis/lib/python3.3/site-packages/ |
|
|
export PATH=${HOME}/osgeo4travis/bin:${HOME}/osgeo4travis/sbin:${PATH} |
|
|
export PATH=${HOME}/osgeo4travis/bin:${HOME}/osgeo4travis/sbin:${HOME}/OTB-5.6.0-Linux64/bin:${PATH} |
|
|
export LD_LIBRARY_PATH=${HOME}/osgeo4travis/lib |
|
|
export CTEST_PARALLEL_LEVEL=1 |
|
|
export CCACHE_TEMPDIR=/tmp |
|
@@ -25,5 +25,8 @@ fi |
|
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
|
|
|
|
|
# Set OTB application path (installed in before_install.sh script) |
|
|
export OTB_APPLICATION_PATH=${HOME}/OTB-5.6.0-Linux64/lib/otb/applications |
|
|
|
|
|
xvfb-run ctest -V -E "qgis_filedownloader|qgis_openstreetmaptest|qgis_wcsprovidertest|qgis_ziplayertest|qgis_ogcutilstest|$(cat ${DIR}/blacklist.txt | paste -sd '|' -)" -S ./qgis-test-travis.ctest --output-on-failure |
|
|
# xvfb-run ctest -V -E "qgis_openstreetmaptest|qgis_wcsprovidertest" -S ./qgis-test-travis.ctest --output-on-failure |