summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-05-11 23:56:16 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-05-11 23:56:16 -0700
commit803ba9219895614276b33784d29467142bc80b29 (patch)
treef130f31f213202a135f62737bed581bd8340f2d4
parent1ddc71e01ec8b958daa90c0b9397d05b43c2a140 (diff)
parent7590d194456e43aaedc2d14841d3394f91ed0ea2 (diff)
Merge pull request #2910 from janschulz/master
Add appveyor artefacts for pandoc.exe
-rw-r--r--appveyor.yml42
-rw-r--r--windows/stack-appveyor.yaml20
2 files changed, 50 insertions, 12 deletions
diff --git a/appveyor.yml b/appveyor.yml
index f2fe828fa..03075c698 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -1,19 +1,37 @@
-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
+ # 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"
+
+artifacts:
+ - path: pandoc.zip
+ name: 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