-
Notifications
You must be signed in to change notification settings - Fork 10
/
appveyor.yml
44 lines (38 loc) · 1.25 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
build: off
clone_folder: "c:\\stack"
environment:
matrix:
- win_runtime: win-x64
arch: x64
plat: win32
- win_runtime: win-x86
arch: ia32
plat: win32
global:
STACK_ROOT: "c:\\sr"
before_test:
# http://help.appveyor.com/discussions/problems/6312-curl-command-not-found
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
- IF "%arch%"=="ia32" (set STACK_URL="windows-i386") ELSE (set STACK_URL="windows-x86_64")
- curl -sS -ostack.zip -L --insecure http://www.stackage.org/stack/%STACK_URL%
- 7z x stack.zip stack.exe
test_script:
- stack setup > nul
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor
- echo "" | stack --no-terminal test
- stack build --ghc-options -O2
- FOR /F "tokens=1 delims=" %%A in ('stack path --local-install-root') do SET STACK_BIN=%%A
- 7z a elmi-to-json-%APPVEYOR_REPO_TAG_NAME%-%plat%-%arch%.zip %STACK_BIN%/bin/elmi-to-json.exe
artifacts:
- path: elmi-to-json-$(APPVEYOR_REPO_TAG_NAME)-$(plat)-$(arch).zip
name: Releases
deploy:
provider: GitHub
auth_token:
secure: fuG2dt0vdyWGkD3uNejcpEYr5iSCiXYN/QmkjP+mRuRf+OSsGpyV+hc9ZzUmOgDD
artifact: elmi-to-json-%APPVEYOR_REPO_TAG_NAME%-$(plat)-$(arch).zip
draft: false
prerelease: false
on:
appveyor_repo_tag: true