forked from cristianoliveira/ergo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
61 lines (48 loc) · 1.48 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
version: "{build}"
# Source Config
clone_folder: c:\gopath\src\github.com\cristianoliveira\ergo
# Build host
environment:
GOPATH: c:\gopath
DEPTESTBYPASS501: 1
GOVERSION: 1.8
init:
- git config --global core.autocrlf input
# Build
install:
# Install the specific Go version.
- rmdir c:\go /s /q
- appveyor DownloadFile https://storage.googleapis.com/golang/go%GOVERSION%.windows-amd64.msi
- msiexec /i go%GOVERSION%.windows-amd64.msi /q
# - choco install bzr
- set Path=c:\go\bin;c:\gopath\bin;C:\Program Files (x86)\Bazaar\;C:\Program Files\Mercurial\%Path%
- go version
- go env
build: false
build_script:
- go build -ldflags "-w -s -X main.VERSION=$(appveyor_repo_tag_name)" -o bin/ergo.exe
- choco install 7zip
- 7z a -tzip bin/ergo-$(appveyor_repo_tag_name)-win.zip bin/ergo.exe
# before_deploy:
# - go build
# - choco install 7zip
# - echo "%APPVEYOR_REPO_TAG_NAME% - ${appveyor_repo_tag_name}"
# - 7z a -tzip ergo-win.zip c:\gopath\src\github.com\cristianoliveira\ergo\*.exe
artifacts:
- path: bin/ergo.exe
type: zip
- path: bin/ergo-$(appveyor_repo_tag_name)-win.zip
type: zip
deploy:
release: $(appveyor_repo_tag_name)
provider: GitHub
auth_token:
secure: "XlXg6r5idqW5O3qBiQHbZ73goavVOVKYaZx11GW7s8DO+M0/ERBImmXa4TAHbSOj"
draft: false
prerelease: false
on:
# branch: master # release from master branch only
appveyor_repo_tag: true
test_script:
- ps: .\make.ps1 -test
- ps: .\make.ps1 -test_integration