Compare commits

...
14 Commits
Author SHA1 Message Date
Howard Butler 26cc185997 use correct line continuation 2020-03-02 15:35:12 -06:00
Howard Butler 453f86ddcb typoland 2020-03-02 15:30:29 -06:00
Howard Butler 25d62f5015 be explicit with SQLITE for conda/osx 2020-03-02 15:24:39 -06:00
Howard Butler 21a8103558 add osx builder 2020-03-02 15:10:06 -06:00
Howard Butler c961dc61de or curl 2020-03-02 14:57:15 -06:00
Howard Butler 3f17ef53cf libtiff is not a declared dependency of PROJ7 in conda-forge 2020-03-02 14:53:31 -06:00
Howard Butler 4f45cae9fc add azp windows builder based on conda-forge and 2017 2020-03-02 14:48:16 -06:00
Howard Butler 4aec3a7dee more installs 2020-03-02 14:36:39 -06:00
Howard Butler daeea3bddc yml typo 2020-03-02 14:31:02 -06:00
Howard Butler ec76707f7c install cmake/gcc/etc 2020-03-02 14:28:16 -06:00
Howard Butler 45d1cffccf specify CXX and CC 2020-03-02 14:16:26 -06:00
Howard Butler 63b8ec535b remove variables 2020-03-02 14:12:44 -06:00
Howard Butler aa647811b7 yml formatting 2020-03-02 14:11:02 -06:00
Howard Butler f95de975aa minimal azp config 2020-03-02 14:07:11 -06:00
4 changed files with 174 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
jobs:
- template: ./scripts/azp/linux.yml
- template: ./scripts/azp/win.yml
- template: ./scripts/azp/osx.yml
+51
View File
@@ -0,0 +1,51 @@
# -*- mode: yaml -*-
jobs:
- job: linux
variables:
- name: BUILD_TYPE
value: Release
pool:
vmImage: ubuntu-16.04
strategy:
matrix:
GCC 8:
CXX: g++-8
CC: gcc-8
PACKAGES: g++-8
GCC 7:
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
uname -a
sudo -E apt-add-repository -y "ppa:ubuntu-toolchain-r/test"
if test -n "${LLVM_REPO}" ; then
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo -E apt-add-repository "deb http://apt.llvm.org/xenial/ ${LLVM_REPO} main"
fi
sudo -E apt-get update
sudo -E apt-get -yq --no-install-suggests --no-install-recommends install libcurl4-openssl-dev libsqlite3-dev sqlite3 libtiff-dev ninja-build cmake ${PACKAGES}
displayName: 'Install'
- script: |
mkdir build
cd build
cmake .. \
-G Ninja \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \
displayName: 'Configure'
- script: |
cd build
cmake --build . --config $BUILD_TYPE
displayName: 'Build'
- script: |
cd build
ctest -V --output-on-failure -C $BUILD_TYPE
displayName: 'Test'
+64
View File
@@ -0,0 +1,64 @@
# -*- mode: yaml -*-
jobs:
- job: osx
pool:
vmImage: macOS-10.14
steps:
- script: |
echo "Removing homebrew from Azure to avoid conflicts."
curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall > ~/uninstall_homebrew
chmod +x ~/uninstall_homebrew
~/uninstall_homebrew -fq
rm ~/uninstall_homebrew
displayName: Remove homebrew
- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
sudo chown -R $USER $CONDA
displayName: Add conda to PATH
- script: |
ECHO ON
source activate base
conda create --yes --quiet --name proj
displayName: Create conda environment
- script: |
ECHO ON
source activate proj
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 proj curl cmake ninja libtiff sqlite conda-build ninja conda-forge-ci-setup=2 -y
displayName: Install PROJ dependencies
- script: |
source activate proj
export CI=azure
source run_conda_forge_build_setup
env: {
OSX_FORCE_SDK_DOWNLOAD: "1"
}
displayName: Configure OSX SDK
- script: |
source activate proj
echo "current directory:" `pwd`
mkdir build
cd build
cmake -G Ninja \
-DCMAKE_LIBRARY_PATH:FILEPATH="$CONDA_PREFIX/lib" \
-DCMAKE_INCLUDE_PATH:FILEPATH="$CONDA_PREFIX/include" \
-DSQLITE3_INCLUDE_DIR:FILEPATH="$CONDA_PREFIX/include" \
-DSQLITE3_LIBRARY:FILEPATH="$CONDA_PREFIX/lib/libsqlite3.dylib" \
..
displayName: 'CMake'
- script: |
cd build
source activate proj
ninja
displayName: 'Build'
- script: |
cd build
source activate proj
ctest -V
+55
View File
@@ -0,0 +1,55 @@
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 libtiff curl 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" ^
-DCMAKE_C_FLAGS="/WX" ^
-DCMAKE_CXX_FLAGS="/WX" ^
-DBUILD_SHARED_LIBS="ON" ^
..
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'