From a0a848235723d11814ba80e14f62547bdc793fba Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Thu, 21 Mar 2019 16:22:23 +0000 Subject: [PATCH] Attempt to add Windows to CI. --- azure-pipelines.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e04fd86..074e639 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -39,4 +39,38 @@ jobs: workingDirectory: build failOnStderr: true + - job: Windows + displayName: Windows-2016 + pool: + vmImage: vs2017-win2016 + strategy: + matrix: + Debug: + BuildType: Debug + Release: + BuildType: Release + steps: + - script: | + choco.exe install ninja + choco.exe install llvm + + - task: CMake@1 + inputs: + cmakeArgs: 'cmake -G Ninja -DCMAKE_C_COMPILER="c:/Program Files/LLVM/bin/clang-cl.exe" -DCMAKE_CXX_COMPILER="c:/Program Files/LLVM/bin/clang-cl.exe"' + + - script: | + set CCC_OVERRIDE_OPTIONS=x-TC x-TP x/TC x/TP + ninja + copy libobjc.dll Tests\ + + workingDirectory: build + failOnStderr: true + displayName: 'Compile' + + - script: | + ctest -j 4 --output-on-failure + + workingDirectory: build + failOnStderr: true + displayName: 'Test' displayName: 'Test'