aboutsummaryrefslogtreecommitdiff
path: root/travis
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-02-11 18:50:53 +0100
committerGitHub <noreply@github.com>2020-02-11 18:50:53 +0100
commit595aafef26bc7878cb4d708cb682e4944e5f7fbb (patch)
treec862cb9d4206f3be8bc11b9f28855abe43cff018 /travis
parenta10b5edfad805b1e09d88b31b953707412440b09 (diff)
parent29583196dfae2565a35c7a8759cc8a5640d6a2b1 (diff)
downloadPROJ-595aafef26bc7878cb4d708cb682e4944e5f7fbb.tar.gz
PROJ-595aafef26bc7878cb4d708cb682e4944e5f7fbb.zip
Merge pull request #1921 from rouault/pj_get_relative_share_proj
Use relative directory to locate PROJ resource files.
Diffstat (limited to 'travis')
-rwxr-xr-xtravis/install.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/travis/install.sh b/travis/install.sh
index 953a7f0b..b0c16881 100755
--- a/travis/install.sh
+++ b/travis/install.sh
@@ -82,6 +82,14 @@ if [ "$SKIP_BUILDS_WITHOUT_GRID" != "yes" ]; then
cd ..
+ if [ $TRAVIS_OS_NAME != "osx" ]; then
+ # Check that we can retrieve the resource directory in a relative way after renaming the installation prefix
+ mkdir /tmp/proj_autoconf_install_from_dist_all_renamed
+ mv /tmp/proj_autoconf_install_from_dist_all /tmp/proj_autoconf_install_from_dist_all_renamed/subdir
+ LD_LIBRARY_PATH=/tmp/proj_autoconf_install_from_dist_all_renamed/subdir/lib /tmp/proj_autoconf_install_from_dist_all_renamed/subdir/bin/projsync --source-id ? --dry-run --system-directory || /bin/true
+ LD_LIBRARY_PATH=/tmp/proj_autoconf_install_from_dist_all_renamed/subdir/lib /tmp/proj_autoconf_install_from_dist_all_renamed/subdir/bin/projsync --source-id ? --dry-run --system-directory 2>/dev/null | grep "Downloading from https://cdn.proj.org into /tmp/proj_autoconf_install_from_dist_all_renamed/subdir/share/proj"
+ fi
+
# cmake build from generated tarball
mkdir build_cmake
cd build_cmake
@@ -92,6 +100,14 @@ if [ "$SKIP_BUILDS_WITHOUT_GRID" != "yes" ]; then
find /tmp/proj_cmake_install
cd ..
+ if [ $TRAVIS_OS_NAME != "osx" ]; then
+ # Check that we can retrieve the resource directory in a relative way after renaming the installation prefix
+ mkdir /tmp/proj_cmake_install_renamed
+ mv /tmp/proj_cmake_install /tmp/proj_cmake_install_renamed/subdir
+ /tmp/proj_cmake_install_renamed/subdir/bin/projsync --source-id ? --dry-run --system-directory || /bin/true
+ /tmp/proj_cmake_install_renamed/subdir/bin/projsync --source-id ? --dry-run --system-directory 2>/dev/null | grep "Downloading from https://cdn.proj.org into /tmp/proj_cmake_install_renamed/subdir/share/proj"
+ fi
+
# return to root
cd ../..
fi