Skip to content

Commit

Permalink
use azp conda
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Feb 3, 2020
1 parent a412ef9 commit 2a71c67
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 18 deletions.
23 changes: 8 additions & 15 deletions scripts/azp/linux-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,14 @@ jobs:
- job: linux_conda
pool:
vmImage: ubuntu-16.04
container:
image: continuumio/miniconda
options: --privileged
timeoutInMinutes: 60
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- script: |
whoami
chown -R vsts_azpcontainer:vsts_azpcontainer /opt/conda
chmod -r 777 /opt/conda
. /opt/conda/etc/profile.d/conda.sh
source activate base
conda create --yes --quiet --name pdal
source activate pdal
conda 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
Expand All @@ -27,7 +20,7 @@ jobs:
displayName: Install PDAL dependencies
- script: |
. /opt/conda/etc/profile.d/conda.sh
source activate pdal
conda activate pdal
echo "current directory:" `pwd`
mkdir build
cd build
Expand All @@ -50,28 +43,28 @@ jobs:
- script: |
. /opt/conda/etc/profile.d/conda.sh
cd build
source activate pdal
conda activate pdal
ninja
displayName: 'Build'
- script: |
. /opt/conda/etc/profile.d/conda.sh
cd build
export PDAL_DRIVER_PATH=`pwd`/lib
source activate pdal
conda 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
conda activate pdal
ls build/lib/*
ninja install
displayName: 'Install'
- script: |
. /opt/conda/etc/profile.d/conda.sh
export BASE=`pwd`
source activate pdal
conda activate pdal
for EXAMPLE in writing writing-filter writing-kernel writing-reader writing-writer
do
cd $BASE/examples/$EXAMPLE
Expand Down
5 changes: 2 additions & 3 deletions scripts/azp/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ jobs:
- job: linux
pool:
vmImage: ubuntu-16.04
container:
image: pdal/azp-dependencies:latest
options: --privileged
timeoutInMinutes: 60
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- script: |
echo "current directory:" `pwd`
mkdir build
Expand Down

0 comments on commit 2a71c67

Please sign in to comment.