forked from hslua/hslua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
34 lines (28 loc) · 960 Bytes
/
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
build: off
clone_folder: "c:\\hslua"
environment:
matrix:
- STACK_VERSION: "windows-i386"
STACK_ROOT: "c:\\sr32"
STACK: "%STACK_ROOT%\\stack.exe"
STACK_FLAGS: "--resolver=lts-9"
- STACK_VERSION: "windows-x86_64"
STACK_ROOT: "c:\\sr64"
STACK: "%STACK_ROOT%\\stack.exe"
STACK_FLAGS: "--resolver=lts-9"
matrix:
fast_finish: true
cache:
- "%STACK_ROOT%"
before_test:
# http://help.appveyor.com/discussions/problems/6312-curl-command-not-found
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
- |
%STACK% --version || curl -sS -ostack.zip -L --insecure http://www.stackage.org/stack/%STACK_VERSION% && 7z e stack.zip -o"%STACK_ROOT%" stack.exe
test_script:
# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
# descriptor
- '%STACK% setup %STACK_FLAGS% > nul'
- '%STACK% path'
- 'echo "" | %STACK% clean'
- 'echo "" | %STACK% --no-terminal test %STACK_FLAGS%'