forked from go-swagger/go-swagger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
73 lines (59 loc) · 2.09 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
68
69
70
71
72
73
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
environment:
GOPATH: C:\gopath
GO15VENDOREXPERIMENT: 1
GOCOVMODE: "mode: count"
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=C:\msys64\mingw64\bin;%PATH%
- gcc --version
- g++ --version
# need bzr for several tests
# - choco install -y --force bzr jq unzip
# - ps: set latestv ((curl -Uri https://api.github.com/repos/Masterminds/glide/releases/latest).Content | jq -r .tag_name)
# - ps: curl -Uri "https://github.com/Masterminds/glide/releases/download/$latestv/glide-$latestv-windows-amd64.zip" -OutFile C:\glide.zip
# - unzip -j -d C:\glide C:\glide.zip
# - set PATH=C:\Program Files (x86)\Bazaar;C:\glide;%PATH%
- choco install -y --force bzr
- set PATH=C:\Program Files (x86)\Bazaar;%PATH%
- bzr --version
# get the dependencies etc
- go get -u github.com/nu7hatch/gouuid
- go get -u github.com/stretchr/testify/assert
- go get -u github.com/davecgh/go-spew/spew
- go get -u golang.org/x/tools/go/buildutil
- go get -u -v github.com/asaskevich/govalidator
- go get -u -v github.com/naoina/denco
- go get -u -v github.com/go-swagger/scan-repo-boundary/makeplans
# some helpful output for debugging builds
- go version
- go env
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- echo %PATH%
- echo %GOPATH%
test_script:
- ps: go test -v -race $(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