aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHoward Butler <howard@hobu.co>2020-03-02 14:28:16 -0600
committerHoward Butler <howard@hobu.co>2020-03-02 14:28:16 -0600
commitec76707f7c3ea438a09a615403d78f92e3256dbf (patch)
tree7b064ac96ac94fa8b9d77243400e9174dd94b8e3 /scripts
parent45d1cffccfce0a6c066a42617d04c54ad45e56e0 (diff)
downloadPROJ-ec76707f7c3ea438a09a615403d78f92e3256dbf.tar.gz
PROJ-ec76707f7c3ea438a09a615403d78f92e3256dbf.zip
install cmake/gcc/etc
Diffstat (limited to 'scripts')
-rw-r--r--scripts/azp/linux.yml31
1 files changed, 25 insertions, 6 deletions
diff --git a/scripts/azp/linux.yml b/scripts/azp/linux.yml
index c5624179..cc083fff 100644
--- a/scripts/azp/linux.yml
+++ b/scripts/azp/linux.yml
@@ -1,27 +1,46 @@
# -*- mode: yaml -*-
jobs:
-- job: linux_gcc
+- job: linux
+ variables:
+ - name: BUILD_TYPE
+ value: Release
pool:
vmImage: ubuntu-16.04
strategy:
matrix:
- GCC:
+ GCC 8:
CXX: g++-8
CC: gcc-8
+ PACKAGES: g++-8
+ GCC 7:
+ CXX: g++-7
+ CC: gcc-7
+ PACKAGES: g++-7
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 ninja-build cmake ${PACKAGES}
+ displayName: 'Install'
- script: |
mkdir build
cd build
cmake .. \
-G Ninja \
- -DCMAKE_BUILD_TYPE=Debug \
- displayName: 'CMake'
+ -DCMAKE_BUILD_TYPE=$BUILD_TYPE \
+ displayName: 'Configure'
- script: |
cd build
- ninja
+ cmake --build . --config $BUILD_TYPE
displayName: 'Build'
- script: |
cd build
- ctest -V
+ ctest -V --output-on-failure -C $BUILD_TYPE
displayName: 'Test'