From a5179d1125e407aa3bd93ceae49cfae73d1a223c Mon Sep 17 00:00:00 2001 From: daan Date: Wed, 10 Jul 2019 22:21:08 -0700 Subject: [PATCH] fix azure pipeline script --- azure-pipelines.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9542e869..0da585b7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -33,20 +33,28 @@ jobs: matrix: Debug: CC: gcc - BuildType: Debug + BuildType: debug + cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug -DMI_CHECK_FULL=ON Release: CC: gcc - BuildType: Release + BuildType: release + cmakeExtraArgs: -DCMAKE_BUILD_TYPE=Debug steps: - task: CMake@1 inputs: workingDirectory: $(BuildType) - cmakeArgs: .. - - script: make -j$(nproc) -C $(BuildType) - - script: ctest -C $(BuildType) + cmakeArgs: .. $(cmakeExtraArgs) + + - script: make -j$(nproc) + workingDirectory: $(BuildType) + + - script: ctest + failOnStderr: true + workingDirectory: $(BuildType) + - upload: $(Build.SourcesDirectory)/$(BuildType) - artifact: ubuntu + artifact: ubuntu-$(BuildType) - job: displayName: macOS