-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
67 lines (54 loc) · 1.69 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
58
59
60
61
62
63
64
65
66
67
version: "0.1.{build}"
# Operating system (build VM template)
os: Windows Server 2012 R2
clone_folder: C:\gopath\src\github.com\go-swagger\go-swagger
shallow_clone: true # for startup speed
pull_requests:
do_not_increment_build_number: true
skip_tags: true
skip_branch_with_pr: true
environment:
GOPATH: C:\gopath
GOVERSION: 1.7.3
GOCOVMODE: "mode: atomic"
PATH: C:\gopath\bin;%PATH%
platform:
- x64
# http://www.appveyor.com/docs/installed-software
install:
# pre-installed MinGW at C:\MinGW is 32bit only
# but MSYS2 at C:\msys64 has mingw64
- set PATH=%GOPATH%\bin;c:\go\bin;C:\msys64\mingw64\bin;%PATH%
- gcc --version
- g++ --version
# upgrade go
- rmdir c:\go /s /q
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.zip
- 7z x go%GOVERSION%.windows-amd64.zip -y -oC:\ > NUL
# some helpful output for debugging builds
- go version
- go env
# get the dependencies etc
- go get -u github.com/stretchr/testify/assert
- go get -u github.com/davecgh/go-spew/spew
- go get -u github.com/axw/gocov/gocov
- go get -u gopkg.in/matm/v1/gocov-html
- go get -u github.com/cee-dub/go-junit-report
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- echo %PATH%
- echo %GOPATH%
test_script:
- ps: go test -race -v $(go list ./... | sls -n vendor)
#artifacts:
# - path: '%GOPATH%\bin\*.exe'
deploy: off
notifications:
- provider: Slack
incoming_webhook: https://hooks.slack.com/services/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
auth_token:
secure: J4Kd3fY4CoTI+5+zSXkStkTPqnycfxFfk74GcGxDUq02z2jHcdIpiLyDbkIiQM9Z
channel: bots
on_build_success: false
on_build_failure: true
on_build_status_changed: true