Set up CI with Azure Pipelines

Update Azure pipelines to new syntax.
main
David Chisnall 7 years ago
parent 351b0cac0a
commit d8844095f9

@ -1,38 +1,41 @@
resources: trigger:
- repo: self - master
- 1.9
phases: pr:
- phase: Linux - master
queue: - 1.9
name: 'Hosted Ubuntu 1604'
parallel: 2 jobs:
matrix: - job: Linux
Debug: displayName: Ubuntu-16.04
BuildType: Debug pool:
Release: vmImage: ubuntu-16.04
BuildType: Release strategy:
matrix:
steps: Debug:
- script: | BuildType: Debug
sudo add-apt-repository deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main Release:
sudo apt-get update BuildType: Release
sudo apt-get install -y ninja-build clang-8 steps:
- script: |
sudo add-apt-repository deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main
- task: CMake@1 sudo apt-get update
inputs: sudo apt-get install -y ninja-build clang-8
cmakeArgs: '.. -GNinja -DCMAKE_BUILD_TYPE=$(BuildType) -DTESTS=ON -DCMAKE_CXX_COMPILER=clang++-8 -DCMAKE_C_COMPILER=clang-8'
- task: CMake@1
- script: | inputs:
ninja cmakeArgs: '.. -GNinja -DCMAKE_BUILD_TYPE=$(BuildType) -DTESTS=ON -DCMAKE_CXX_COMPILER=clang++-8 -DCMAKE_C_COMPILER=clang-8'
workingDirectory: build - script: |
failOnStderr: true ninja
displayName: 'Compile'
workingDirectory: build
- script: | failOnStderr: true
ctest -j 4 --output-on-failure displayName: 'Compile'
workingDirectory: build - script: |
failOnStderr: true ctest -j 4 --output-on-failure
displayName: 'Test'
workingDirectory: build
failOnStderr: true
displayName: 'Test'

Loading…
Cancel
Save