forked from joefitzgerald/go-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
50 lines (42 loc) · 1.31 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
# version format
version: "{build}"
# Operating system (build VM template)
os: Windows Server 2012 R2
# environment variables
environment:
GOPATH: c:\gopath
init:
- ps: >-
$app = Get-WmiObject -Class Win32_Product -Filter "Vendor = 'http://golang.org'"
if ($app) {
$app.Uninstall()
}
# scripts that run after cloning repository
install:
- appveyor DownloadFile https://atom.io/download/windows -FileName AtomSetup.exe
- AtomSetup.exe /silent
- set PATH=%LOCALAPPDATA%\atom\bin;%GOPATH%\bin;c:\go\bin;%PATH%
- appveyor DownloadFile https://storage.googleapis.com/golang/go1.4.2.windows-amd64.msi
- msiexec /i go1.4.2.windows-amd64.msi /q
- go version
- go env
- mkdir c:\gopath
- go get -u github.com/golang/lint/golint
- go get -u golang.org/x/tools/cmd/cover
- go get -u golang.org/x/tools/cmd/goimports
- go get -u golang.org/x/tools/cmd/vet
- go get -u golang.org/x/tools/cmd/oracle
- go get -u sourcegraph.com/sqs/goreturns
- go get -u github.com/nsf/gocode
- go get -u github.com/rogpeppe/godef
# to run your custom scripts instead of automatic MSBuild
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- SET PATH=%LOCALAPPDATA%\atom\bin;%GOPATH%\bin;%PATH%
- apm clean
- apm install
- apm test
# to disable automatic tests
test: off
# to disable deployment
deploy: off