diff options
| author | Howard Butler <howard@hobu.co> | 2020-03-02 14:48:16 -0600 |
|---|---|---|
| committer | Howard Butler <howard@hobu.co> | 2020-03-02 14:48:16 -0600 |
| commit | 4f45cae9fcd90a671528249dce97845206999e73 (patch) | |
| tree | d2443cbbf51d2531c0c87d3805861e2de48731a6 /scripts | |
| parent | 4aec3a7deef350ce99c14f5ecb51378783464904 (diff) | |
| download | PROJ-4f45cae9fcd90a671528249dce97845206999e73.tar.gz PROJ-4f45cae9fcd90a671528249dce97845206999e73.zip | |
add azp windows builder based on conda-forge and 2017
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/azp/linux.yml | 5 | ||||
| -rw-r--r-- | scripts/azp/win.yml | 52 |
2 files changed, 57 insertions, 0 deletions
diff --git a/scripts/azp/linux.yml b/scripts/azp/linux.yml index 455cffe1..95d2ed38 100644 --- a/scripts/azp/linux.yml +++ b/scripts/azp/linux.yml @@ -17,6 +17,11 @@ jobs: CXX: g++-7 CC: gcc-7 PACKAGES: g++-7 + Clang 8: + CXX: clang++-8 + CC: clang-8 + PACKAGES: clang-8 + LLVM_REPO: llvm-toolchain-xenial-8 steps: - script: | set -e diff --git a/scripts/azp/win.yml b/scripts/azp/win.yml new file mode 100644 index 00000000..f82d232f --- /dev/null +++ b/scripts/azp/win.yml @@ -0,0 +1,52 @@ + +jobs: +- job: win + + pool: + vmImage: vs2017-win2016 + steps: + - powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts" + displayName: Add conda to PATH + + - script: | + ECHO ON + call conda create --yes --quiet --name proj + displayName: Create conda environment + + - script: | + ECHO ON + call activate proj + call conda config --set always_yes True --set show_channel_urls True + call conda install --yes --quiet --name proj -c conda-forge conda-build ninja -y + call conda install -c conda-forge proj --only-deps -y + displayName: Install PROJ dependencies + - script: | + ECHO ON + call activate proj + call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 + echo %PATH% + set CC=cl.exe + set CXX=cl.exe + mkdir build + pushd build + cmake -G "Ninja" ^ + -DCMAKE_LIBRARY_PATH:FILEPATH="%CONDA_PREFIX%/Library/lib" ^ + -DCMAKE_INCLUDE_PATH:FILEPATH="%CONDA_PREFIX%/Library/include" ^ + .. + displayName: 'CMake' + - script: | + call activate proj + pushd build + call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 + set CC=cl.exe + set CXX=cl.exe + ninja -v + displayName: 'Build' + - script: | + ECHO ON + call activate proj + pushd build + call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 + ctest -VV --output-on-failure + displayName: 'Test' + |
