aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--appveyor.yml36
-rw-r--r--windows/stack-appveyor.yaml20
2 files changed, 43 insertions, 13 deletions
diff --git a/appveyor.yml b/appveyor.yml
index f1ef27b00..03075c698 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,23 +1,33 @@
-cache:
-- "c:\\sr" # stack root, short paths == fewer problems
+clone_folder: "c:\\stack"
+environment:
+ global:
+ STACK_ROOT: "c:\\sr"
+ STACK_YAML: "c:\\stack\\windows\\stack-appveyor.yaml"
+
+cache:
+ - "c:\\sr" # stack root, short paths == fewer problems
+ - '%LOCALAPPDATA%\Programs\stack' # even less to install...
+
build: off
+install:
+ - curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
+ - 7z x stack.zip stack.exe
+ - stack setup > nul
+
before_test:
-- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
-- 7z x stack.zip stack.exe
-- git submodule update --init # to fetch the templates
+ # the stack install already fails without the templates...
+ - git submodule update --init
+ # set PATH to where the hsb2hs binary is copied to
+ - cmd: set "PATH=%PATH%;%APPDATA%\\local\\bin"
+ - stack install hsb2hs
-clone_folder: "c:\\stack"
-environment:
- global:
- STACK_ROOT: "c:\\sr"
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
+ # The ugly echo "" hack is to avoid complaints about 0 being an invalid file
+ # descriptor
+ - echo "" | stack --no-terminal test
after_test:
- ps: 7z a "pandoc.zip" "$(.\\stack.exe path --local-install-root)\\bin\\pandoc*.exe"
diff --git a/windows/stack-appveyor.yaml b/windows/stack-appveyor.yaml
new file mode 100644
index 000000000..e5a2b138e
--- /dev/null
+++ b/windows/stack-appveyor.yaml
@@ -0,0 +1,20 @@
+flags:
+ pandoc:
+ trypandoc: false
+ https: true
+ embed_data_files: true
+ old-locale: false
+ network-uri: true
+packages:
+- '..'
+extra-deps:
+- 'hsb2hs-0.3.1'
+- 'texmath-0.8.6.2'
+- 'data-default-0.6.0'
+- 'data-default-instances-base-0.1.0'
+- 'preprocessor-tools-1.0.1'
+# to compile against aeson 0.11.0.0:
+# - 'aeson-0.11.0.0'
+# - 'fail-4.9.0.0'
+# - 'pandoc-types-1.16.1'
+resolver: lts-5.8