forked from getporter/docker-mixin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
44 lines (36 loc) · 883 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
39
40
41
42
43
44
# Go
# Build your Go project.
# Add steps that test, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/go
trigger:
branches:
include:
- refs/heads/main
- refs/tags/v*
pool:
vmImage: 'Ubuntu 16.04'
steps:
- task: GoTool@0
inputs:
version: '1.13.10'
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: |
make build test-unit
displayName: 'Unit Test'
- script: |
make xbuild-all
displayName: 'Cross Compile'
- script: |
make test-integration
displayName: 'Integration Test'
- script: |
make publish
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)
displayName: 'Publish'
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))