-
Notifications
You must be signed in to change notification settings - Fork 43
/
azure-pipelines.yml
40 lines (34 loc) · 1.02 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
# 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:
- master
pool:
vmImage: 'windows-2019'
variables:
GOBIN: "$(GOPATH)/bin" # Go binaries path
GOPATH: "$(system.defaultWorkingDirectory)/gopath" # Go workspace path
GO111MODULE: "on"
workspacePath: "$(system.defaultWorkingDirectory)" # Path to the module's code
steps:
- script: |
mkdir "%GOBIN%"
mkdir "%GOPATH%/pkg"
mkdir tools
echo "%GOBIN%"
echo "%GOROOT%/bin"
docker pull mcr.microsoft.com/windows/nanoserver:1809
ipconfig /all
go env
displayName: 'Set up the Go workspace'
- script: |
go version
make all
displayName: "build"
- script: |
bitsadmin /transfer runhcs /dynamic /priority FOREGROUND /download https://github.com/microsoft/hcsshim/releases/download/v0.8.6/runhcs.exe %workspacePath%\tools\runhcs.exe
set PATH=%PATH%;%workspacePath%\tools\
echo %PATH%
make test
displayName: "test"