forked from sensu/sensu-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
57 lines (47 loc) · 1.1 KB
/
.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
clone_folder: c:\gopath\src\github.com\sensu\sensu-go
branches:
only:
- master
image:
- Visual Studio 2015
# - Visual Studio 2017
cache:
- c:\go\pkg\mod -> go.mod, go.sum
environment:
GOPATH: c:\gopath
GOVERSION: 1.13.7
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:\go\bin;%PATH%
- go version
- go env
- mkdir %GOPATH%\bin
- go mod download
platform:
- x64
build_script:
- ps: .\build.ps1 $env:TEST_SUITE
before_deploy:
- ps: .\build.ps1 wait_for_appveyor_jobs
deploy:
provider: GitHub
release: $(appveyor_repo_tag_name)
description: ''
artifact: /sensu.*/
auth_token:
secure: e3aSzq/Y9btOgFMXc3rfGwjPLj/LnxyG8KY6czcrywgQXEm+9X74fvGFE0B9Km/j
draft: false
prerelease: true
on:
appveyor_repo_tag: true