Skip to content

Commit d61a80a

Browse files
authored
Merge pull request #45 from ReconfigureIO/feature/windows-build
Add an appveyor config.
2 parents 9386f8e + 917cf84 commit d61a80a

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

appveyor.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
version: "{build}"
2+
3+
platform: x64
4+
5+
branches:
6+
only:
7+
- master
8+
9+
# Source Config
10+
clone_folder: c:\gopath\src\github.com\ReconfigureIO\goblin
11+
12+
environment:
13+
GOPATH: c:\gopath
14+
GOVERSION: 1.7.1
15+
16+
init:
17+
- git config --global core.autocrlf input
18+
19+
install:
20+
# Install the specific Go version.
21+
- rmdir c:\go /s /q
22+
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.msi
23+
- msiexec /i go%GOVERSION%.windows-amd64.msi /q
24+
- set Path=c:\go\bin;c:\gopath\bin;C:\Program Files (x86)\Bazaar\;%PATH%
25+
- go version
26+
- go env
27+
- choco install make
28+
29+
test_script:
30+
- make test
31+
32+
build_script:
33+
- make goblin
34+
- rename goblin goblin.exe
35+
36+
artifacts:
37+
- path: goblin.exe
38+
39+
deploy:
40+
- provider: GitHub
41+
artifact: goblin.exe
42+
draft: false
43+
prerelease: false
44+
on:
45+
branch: master # release from master branch only
46+
appveyor_repo_tag: true # deploy on tag push only
47+
48+
notifications:
49+
- provider: Email
50+
on_build_success: false
51+
52+
- provider: Slack
53+
channel: #status
54+
incoming_webhook:
55+
secure: LbTv30cQKAAQHOmq90O6hFm1mjFRvZljYwtx7V00jq/HadB/IWPTwFzWFUOZMR6heHHMBxzGRmN8kRmqK5qw/q230fHqkJ4qZ+wUsiXz7VU=

0 commit comments

Comments
 (0)