forked from wjdp/htmltest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
30 lines (25 loc) · 1.06 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
environment:
GOPATH: C:\GOPATH
GOARCH: amd64
OS_NAME: win64
init:
- set PATH=%PATH%;%GOPATH%\bin
- go version
- go env
# clones and cd's to path
clone_folder: C:\GOPATH\src\github.com\wjdp\htmltest
install:
- go get -t ./... # Fetch all dependencies
build_script:
- go test -v -race ./... # Run test suite
- cmd: for /f %%i in ('"call powershell (Get-Date).ToUniversalTime().ToString('yyyy-MM-dd-hh:mm:ssZ')"') do set BUILD_DATE=%%i
- cmd: for /f %%i in ('"call git describe --tags"') do set VERSION=%%i
- cmd: go build -ldflags "-X main.date=%BUILD_DATE% -X main.version=%VERSION%" -o bin/htmltest-%OS_NAME%.exe -x main.go
- cmd: .\bin\htmltest-%OS_NAME%.exe -h # Print usage
- cmd: .\bin\htmltest-%OS_NAME%.exe -v # Print version
- cmd: .\bin\htmltest-%OS_NAME%.exe -c htmldoc/fixtures/conf.yaml -l0 # Run config
- cmd: .\bin\htmltest-%OS_NAME%.exe htmldoc/fixtures/documents/dir1 # Run on dir
- cmd: .\bin\htmltest-%OS_NAME%.exe htmltest/fixtures/links/head_link_href.html # Run on file
artifacts:
- path: bin\*.exe
name: htmltest-binaries