forked from conjure-cp/conjure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
42 lines (40 loc) · 1.39 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
trigger:
- master
jobs:
- job: Conjure
timeoutInMinutes: 0
strategy:
matrix:
Linux:
imageName: 'ubuntu-latest'
runTests: true
coverage: false
Mac:
imageName: 'macos-latest'
runTests: true
coverage: false
Windows:
imageName: 'vs2017-win2016'
runTests: false
coverage: false
CodeCoverage:
imageName: 'ubuntu-latest'
runTests: true
coverage: true
pool:
vmImage: $(imageName)
steps:
- bash: BIN_DIR=${HOME}/.local/bin PATH=${HOME}/.local/bin:${PATH} COVERAGE=$(coverage) BUILD_TESTS=true make
displayName: "Build Conjure"
- bash: if $(runTests) ; then BIN_DIR=${HOME}/.local/bin PATH=${HOME}/.local/bin:${PATH} etc/build/install-minion.sh ; fi
displayName: "Install Minion"
- bash: if $(runTests) ; then BIN_DIR=${HOME}/.local/bin PATH=${HOME}/.local/bin:${PATH} etc/build/install-glucose.sh ; fi
displayName: "Install Glucose"
- bash: if $(runTests) ; then BIN_DIR=${HOME}/.local/bin PATH=${HOME}/.local/bin:${PATH} COVERAGE=$(coverage) LIMIT_TIME=0 make test ; fi
displayName: "Test"
- task: DownloadSecureFile@1
inputs:
secureFile: azure_id_rsa
displayName: 'Get the Github deploy key'
- bash: COVERAGE=$(coverage) SOURCE_VERSION="$(Build.SourceVersion)" etc/build/record-coverage.sh
displayName: "Upload code coverage report to Github"