diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-08-11 15:36:55 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-08-11 17:57:33 +0200 |
| commit | 6f3df8c695fa62302070a277603f60d26acd8854 (patch) | |
| tree | d247114804c0f0500744da18bd48fa7bb7a0350a | |
| parent | e7cb0caa6882aa587fa42b5f2aed27cc12eaeb02 (diff) | |
| download | PROJ-6f3df8c695fa62302070a277603f60d26acd8854.tar.gz PROJ-6f3df8c695fa62302070a277603f60d26acd8854.zip | |
travis/install.sh: make sure to run tests without grids, and remove a useless step
| -rwxr-xr-x | travis/install.sh | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/travis/install.sh b/travis/install.sh index ed7822a7..714d21ed 100755 --- a/travis/install.sh +++ b/travis/install.sh @@ -2,13 +2,8 @@ set -e -# Download grid files to nad/ +# Download grid files wget http://download.osgeo.org/proj/proj-datumgrid-1.7.zip -cd nad -unzip -o ../proj-datumgrid-1.7.zip -GRIDDIR=`pwd` -echo $GRIDDIR -cd .. # prepare build files ./autogen.sh @@ -30,7 +25,9 @@ cd build_autoconf ../configure --prefix=/tmp/proj_autoconf_install_from_dist_all make -j3 make install -PROJ_LIB=$GRIDDIR make check +# We have a small issue with out-of-tree builds where the null file is generated in the build directory, but other non-generated stuff is in $(top_srcdir)/nad +# Workaround this by using the install directory... +PROJ_LIB=/tmp/proj_autoconf_install_from_dist_all/share/proj make check find /tmp/proj_autoconf_install_from_dist_all cd .. @@ -40,21 +37,22 @@ cd build_cmake cmake .. -DCMAKE_INSTALL_PREFIX=/tmp/proj_cmake_install make -j3 make install -PROJ_LIB=$GRIDDIR ctest +# The cmake build is not able to generate the null file, so copy it at hand +cp /tmp/proj_autoconf_install_from_dist_all/share/proj/null /tmp/proj_cmake_install/share/proj +PROJ_LIB=/tmp/proj_cmake_install/share/proj ctest find /tmp/proj_cmake_install cd .. # return to root cd ../.. -# cmake build with grids -mkdir build_cmake_nad -cd build_cmake_nad -cmake .. -DCMAKE_INSTALL_PREFIX=/tmp/proj_cmake_install_nad -make -j3 -make install -find /tmp/proj_cmake_install_nad +# Install grid files +cd nad +unzip -o ../proj-datumgrid-1.7.zip +GRIDDIR=`pwd` +echo $GRIDDIR cd .. + # autoconf build with grids mkdir build_autoconf_nad cd build_autoconf_nad @@ -69,6 +67,7 @@ make test228 cd .. PROJ_LIB=../nad src/multistresstest cd .. + # autoconf build with grids and coverage if [ $TRAVIS_OS_NAME == "osx" ]; then CFLAGS="--coverage" ./configure; |
