forked from cnabio/cnab-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
38 lines (33 loc) · 921 Bytes
/
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
pool:
vmImage: 'ubuntu-latest'
steps:
- task: GoTool@0
inputs:
version: '1.19.6'
displayName: 'Install Go'
- script: |
set -xeuo pipefail
mkdir -p /home/vsts/go/bin/
echo "##vso[task.prependpath]/home/vsts/go/bin/"
displayName: 'Configure Go'
- script: |
set -xeuo pipefail
go env
go mod download
make bootstrap
make fetch-schemas build lint coverage
GOOS=windows make build
GOOS=darwin make build
workingDirectory: '$(System.DefaultWorkingDirectory)'
displayName: 'Get dependencies, build, test'
- task: PublishTestResults@2
inputs:
testRunner: JUnit
testResultsFiles: $(System.DefaultWorkingDirectory)/**/report.xml
failTaskOnFailedTests: true
condition: always()
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: $(System.DefaultWorkingDirectory)/**/coverage.xml
condition: always()