forked from sensu/sensu-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
43 lines (35 loc) · 858 Bytes
/
.appveyor.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
clone_folder: c:\gopath\src\github.com\sensu\sensu-go
branches:
only:
- main
image:
- Visual Studio 2015
# - Visual Studio 2017
cache:
- c:\Program Files\Go\pkg\mod -> go.mod, go.sum
environment:
GOPATH: c:\gopath
GOROOT: c:\Program Files\Go
GOVERSION: 1.16.5
GO111MODULE: 'on'
GOPROXY: 'https://proxy.golang.org'
matrix:
- GOARCH: amd64
TEST_SUITE: unit
- GOARCH: amd64
TEST_SUITE: integration
install:
- rmdir c:\go /s /q
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-%GOARCH%.msi
- msiexec /i go%GOVERSION%.windows-%GOARCH%.msi /q
- echo %PATH%
- echo %GOPATH%
- set PATH=%GOPATH%\bin;c:\Program Files\Go\bin;%PATH%
- go version
- go env
- mkdir %GOPATH%\bin
- go mod download
platform:
- x64
build_script:
- ps: .\build.ps1 $env:TEST_SUITE