-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
38 lines (38 loc) · 1.5 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
jobs:
- job: Test
strategy:
matrix:
Linux:
vmImage: ubuntu-latest
macOS:
vmImage: macOS-latest
Windows:
vmImage: windows-latest
pool:
vmImage: $(vmImage)
steps:
- script: sudo add-apt-repository ppa:plt/racket && sudo apt-get update && sudo apt-get install --no-install-recommends -y racket racket-doc
displayName: Install Racket (Linux)
condition: eq(variables['Agent.OS'], 'Linux')
- script: brew cask install racket
displayName: Install Racket (macOS)
condition: eq(variables['Agent.OS'], 'Darwin')
- script: "cinst racket && echo ##vso[task.prependpath]%ProgramFiles%\\Racket"
displayName: Install Racket (Windows)
condition: eq(variables['Agent.OS'], 'Windows_NT')
- script: raco pkg install --auto cover-cobertura
displayName: Install coverage tools
- script: raco cover -f html -f cobertura .
displayName: Run tests with coverage
- task: PublishCodeCoverageResults@1
displayName: Publish coverage result
condition: eq(variables['Agent.OS'], 'Linux')
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: coverage/cobertura.xml
- task: PublishBuildArtifacts@1
displayName: Archive HTML coverage report
condition: eq(variables['Agent.OS'], 'Linux')
inputs:
pathtoPublish: coverage
artifactName: coverage-report