forked from purescript/spago
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
62 lines (52 loc) · 1.81 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
57
58
59
60
61
62
version: 1.0.{build}
branches:
only:
- master
environment:
STACK_ROOT: C:\sr
STACK_VERSION: 2.1.1
# Workaround a gnarly bug https://github.com/haskell/cabal/issues/5386
# See: https://www.fpcomplete.com/blog/2018/06/sed-a-debugging-story
# TODO: check if it's fixed once we switch to lst-13 and GHC 8.6
TMP: "c:\\tmp"
matrix:
- STACK_YAML: stack.yaml
install:
# http://help.appveyor.com/discussions/problems/6312-curl-command-not-found
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
- curl --silent --show-error --output stack.zip --location "https://github.com/commercialhaskell/stack/releases/download/v%STACK_VERSION%/stack-%STACK_VERSION%-windows-x86_64.zip"
- 7z x stack.zip stack.exe
- stack setup > nul
- npm install -g bower
- ps: |
$releases = "https://api.github.com/repos/purescript/purescript/releases"
$tag = "v0.13.5"
$download = "https://github.com/purescript/purescript/releases/download/$tag/win64.tar.gz"
Invoke-WebRequest $download -Out purescript.tar.gz
- tar -xvf purescript.tar.gz
- chmod a+x purescript
cache:
- '%STACK_ROOT% -> %STACK_YAML%, appveyor.yml'
- '.stack-work -> %STACK_YAML%, appveyor.yml'
build_script:
- stack build
- stack install --local-bin-path bin
- cp bin\spago.exe spago.exe
- tar -zcvf windows.tar.gz spago.exe
test_script:
- set PATH=C:\projects\spago\bin;C:\projects\spago\purescript;%PATH%
- set XDG_CACHE_HOME=C:\cache
- stack test
# We install psa and rerun the tests that exercise it
- npm install -g purescript-psa
- stack test --ta "--match \"/Spago/spago run\""
artifacts:
- path: windows.tar.gz
name: spago
deploy:
- provider: GitHub
auth_token:
secure: fJUuBdSozxDLZP2sDiBXf4dEjdSJPBhZvwI/3FII+4RNxow0wGEX5ZzEyeK2wN7q
artifact: spago
on:
APPVEYOR_REPO_TAG: true