forked from ravendb/ravendb-go-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
50 lines (39 loc) · 1.17 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
# based on https://github.com/joefitzgerald/go-plus/blob/master/appveyor.yml
version: 4.0.{build}
branches:
only:
- v4.0
notifications:
- provider: Email
to:
- kkowalczyk@gmail.com
skip_tags: true
clone_depth: 5
# TODO: should I use
# shallow_clone: true
# https://www.appveyor.com/blog/2014/06/04/shallow-clone-for-git-repositories/ ?
# must use go 1.11 or later
environment:
GOPATH: c:\gopath
GOVERSION: 1.11
LOG_HTTP_REQUEST_SUMMARY: true
LOG_FAILED_HTTP_REQUESTS: true
LOG_FAILED_HTTP_REQUESTS_DELAYED: true
clone_folder: c:\gopath\ravendb-go-client
install:
- set PATH=%GOPATH%\bin;c:\go\bin;%PATH%
- 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
- go version
- go env
- echo %CD%
# technically go get ./... fails, because it can't compile gopacket, but thats fine on windows
- go get -v . & exit 0
# by default appveyor assumes VS project built with MSBuild
# this marks us as custom build and provides explicit build command
build_script:
- go build
test_script:
- go test -v -vet=off ./tests
deploy: off