Skip to content

Commit df79443

Browse files
committed
Merge PR #61, AppVeyor builds
Thanks @miltador I wasn't able to get S3 uploads working. Will spin out into a new issue.
2 parents 7d4d1ae + 9900fad commit df79443

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

appveyor.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
environment:
2+
GOPATH: C:\GOPATH
3+
GOARCH: amd64
4+
OS_NAME: win64
5+
6+
init:
7+
- set PATH=%PATH%;%GOPATH%\bin
8+
- go version
9+
- go env
10+
11+
# clones and cd's to path
12+
clone_folder: C:\GOPATH\src\github.com\wjdp\htmltest
13+
14+
install:
15+
- go get -t ./... # Fetch all dependencies
16+
17+
build_script:
18+
- go test -v -race ./... # Run test suite
19+
- cmd: for /f %%i in ('"call powershell (Get-Date).ToUniversalTime().ToString('yyyy-MM-dd-hh:mm:ssZ')"') do set BUILD_DATE=%%i
20+
- cmd: for /f %%i in ('"call git describe --tags"') do set VERSION=%%i
21+
- cmd: go build -ldflags "-X main.buildDate=%BUILD_DATE% -X main.version=%VERSION%" -o bin/htmltest-%OS_NAME%.exe -x main.go
22+
- cmd: .\bin\htmltest-%OS_NAME%.exe -h # Print usage
23+
- cmd: .\bin\htmltest-%OS_NAME%.exe -v # Print version
24+
- cmd: .\bin\htmltest-%OS_NAME%.exe -c htmldoc/fixtures/conf.yaml -l0 # Run config
25+
- cmd: .\bin\htmltest-%OS_NAME%.exe htmldoc/fixtures/documents/dir1 # Run on dir
26+
- cmd: .\bin\htmltest-%OS_NAME%.exe htmltest/fixtures/links/head_link_href.html # Run on file
27+
28+
artifacts:
29+
- path: bin\*.exe
30+
name: htmltest-binaries
31+
32+
deploy:
33+
provider: GitHub
34+
auth_token:
35+
secure: 9+xdNIvrnAVRoTFYPvdfYxnSUtWXObdc4DUIndJwiliSsD44stBnDwCvPZ+3OH3e # your encrypted token from GitHub
36+
artifact: htmltest-binaries
37+
on:
38+
appveyor_repo_tag: true # deploy on tag push only

0 commit comments

Comments
 (0)