From d8844095f97aaccd407b7aa32401e8cee4873b15 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Thu, 21 Mar 2019 15:03:50 +0000 Subject: [PATCH] Set up CI with Azure Pipelines Update Azure pipelines to new syntax. --- azure-pipelines.yml | 79 +++++++++++++++++++++++---------------------- 1 file changed, 41 insertions(+), 38 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index fa5d7cb..4eb6b32 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,38 +1,41 @@ -resources: - - repo: self - -phases: -- phase: Linux - queue: - name: 'Hosted Ubuntu 1604' - parallel: 2 - matrix: - Debug: - BuildType: Debug - Release: - BuildType: Release - - steps: - - script: | - sudo add-apt-repository deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main - sudo apt-get update - sudo apt-get install -y ninja-build clang-8 - - - - task: CMake@1 - inputs: - cmakeArgs: '.. -GNinja -DCMAKE_BUILD_TYPE=$(BuildType) -DTESTS=ON -DCMAKE_CXX_COMPILER=clang++-8 -DCMAKE_C_COMPILER=clang-8' - - - script: | - ninja - - workingDirectory: build - failOnStderr: true - displayName: 'Compile' - - - script: | - ctest -j 4 --output-on-failure - - workingDirectory: build - failOnStderr: true - displayName: 'Test' +trigger: +- master +- 1.9 +pr: +- master +- 1.9 + +jobs: + - job: Linux + displayName: Ubuntu-16.04 + pool: + vmImage: ubuntu-16.04 + strategy: + matrix: + Debug: + BuildType: Debug + Release: + BuildType: Release + steps: + - script: | + sudo add-apt-repository deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-8 main + sudo apt-get update + sudo apt-get install -y ninja-build clang-8 + + - task: CMake@1 + inputs: + cmakeArgs: '.. -GNinja -DCMAKE_BUILD_TYPE=$(BuildType) -DTESTS=ON -DCMAKE_CXX_COMPILER=clang++-8 -DCMAKE_C_COMPILER=clang-8' + + - script: | + ninja + + workingDirectory: build + failOnStderr: true + displayName: 'Compile' + + - script: | + ctest -j 4 --output-on-failure + + workingDirectory: build + failOnStderr: true + displayName: 'Test'