-
Notifications
You must be signed in to change notification settings - Fork 6
/
appveyor.yml
56 lines (46 loc) · 1.27 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
cache:
- "c:\\sr" # stack root, short paths == fewer problems
branches:
only:
- main
- /\d*\.\d*\.\d*/
environment:
global:
STACK_ROOT: "c:\\sr"
TMP: "c:\\tmp"
TAG: ${APPVEYOR_REPO_TAG_NAME}
install:
# http://help.appveyor.com/discussions/problems/6312-curl-command-not-found
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
- set PATH=C:\projects\improviz\dist\improviz-win;%PATH%
- curl -sS -ostack.zip -L --insecure https://get.haskellstack.org/stable/windows-x86_64.zip
- 7z x stack.zip stack.exe
before_build:
- stack setup > nul
build_script:
- stack build
test_script:
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor
- echo "" | stack --no-terminal test --jobs 1
after_test:
- ps: >-
if (Test-Path env:APPVEYOR_REPO_TAG_NAME) {
./scripts/build-win.ps1
}
artifacts:
- path: improviz-win-*.zip
name: improviz-win-${TAG}
type: zip
deploy:
tag: $(APPVEYOR_REPO_TAG_NAME)
release: Improviz-$(APPVEYOR_REPO_TAG_NAME)
description: ''
provider: GitHub
auth_token:
secure: LA652uOVAT9gGEvF0oUnnmFSvrhbF2/aR1ZxxTe+n+B0FLvTi8HSz23tIsKK+yDm
artifact: /improviz-win-.*\.zip/
draft: false
prerelease: false
on:
APPVEYOR_REPO_TAG: true # deploy on tag push only