-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement a Linux build based on Conda with a pinned GDAL dependency (#…
…2911) * add Linux/Conda build * fix job name * conda junk * set uid/gid * set uid:gid * conda user stuff again * more usermod * clobber /opt/conda perms * clobber user to vsts_azpcontainer * use azp conda * fix syntax * remove manual env setting * conda init * LD_FLAGS * no pin * another swing * selectively shut off tiledb tests with BUILD_TILEDB_TESTS * try pinning gdal * use correct GDAL pin
- Loading branch information
Showing
3 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
jobs: | ||
- template: ./scripts/azp/linux.yml | ||
- template: ./scripts/azp/linux-conda.yml | ||
- template: ./scripts/azp/win.yml | ||
- template: ./scripts/azp/osx.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# -*- mode: yaml -*- | ||
|
||
jobs: | ||
- job: linux_conda | ||
pool: | ||
vmImage: ubuntu-16.04 | ||
timeoutInMinutes: 60 | ||
steps: | ||
- bash: echo "##vso[task.prependpath]$CONDA/bin" | ||
displayName: Add conda to PATH | ||
- script: | | ||
. /opt/conda/etc/profile.d/conda.sh | ||
conda create --yes --quiet --name pdal | ||
source activate pdal | ||
conda config --set always_yes True --set show_channel_urls True | ||
conda config --add channels conda-forge | ||
conda config --set channel_priority strict | ||
conda install --yes --quiet --name pdal -c conda-forge gdal=3.0.2=py37hbb6b9fb_8 python=3.7 conda-build ninja conda-forge-ci-setup=2 -y | ||
conda install --yes --quiet --name pdal -c conda-forge pdal --only-deps -y | ||
displayName: Install PDAL dependencies | ||
- script: | | ||
. /opt/conda/etc/profile.d/conda.sh | ||
source activate pdal | ||
echo "current directory:" `pwd` | ||
mkdir build | ||
cd build | ||
LDFLAGS="$LDFLAGS -Wl,-rpath-link,$CONDA_PREFIX/lib" cmake -G Ninja \ | ||
-DCMAKE_LIBRARY_PATH:FILEPATH="$CONDA_PREFIX/lib" \ | ||
-DCMAKE_INCLUDE_PATH:FILEPATH="$CONDA_PREFIX/include" \ | ||
-DCMAKE_FIND_FRAMEWORK="NEVER" \ | ||
-DCMAKE_BUILD_TYPE=Debug \ | ||
-DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} \ | ||
-DBUILD_PLUGIN_PGPOINTCLOUD=ON \ | ||
-DBUILD_PLUGIN_NITF=ON \ | ||
-DBUILD_PLUGIN_ICEBRIDGE=ON \ | ||
-DBUILD_PLUGIN_TILEDB=ON \ | ||
-DBUILD_PGPOINTCLOUD_TESTS=OFF \ | ||
-DWITH_LAZPERF=ON \ | ||
-DWITH_ZSTD=ON \ | ||
-DWITH_LASZIP=ON \ | ||
.. | ||
displayName: 'CMake' | ||
- script: | | ||
. /opt/conda/etc/profile.d/conda.sh | ||
cd build | ||
source activate pdal | ||
ninja | ||
displayName: 'Build' | ||
- script: | | ||
. /opt/conda/etc/profile.d/conda.sh | ||
cd build | ||
export PDAL_DRIVER_PATH=`pwd`/lib | ||
source activate pdal | ||
ctest -V | ||
displayName: 'Test' | ||
- script: | | ||
. /opt/conda/etc/profile.d/conda.sh | ||
export PDAL_TEST_DIR=`pwd`/test | ||
cd build | ||
source activate pdal | ||
ls build/lib/* | ||
ninja install | ||
displayName: 'Install' | ||
- script: | | ||
. /opt/conda/etc/profile.d/conda.sh | ||
export BASE=`pwd` | ||
source activate pdal | ||
for EXAMPLE in writing writing-filter writing-kernel writing-reader writing-writer | ||
do | ||
cd $BASE/examples/$EXAMPLE | ||
mkdir -p _build || exit 1 | ||
cd _build || exit 1 | ||
cmake -G "Ninja" .. -DPDAL_DIR=$CONDA_PREFIX/lib/cmake/PDAL && ninja | ||
done | ||
displayName: 'Examples' | ||