git.iko.soy/typeable/pandoc
on master help sign in
Use windows stack.yaml on appveyor to embedded the templates
commit7590d194456e43aaedc2d14841d3394f91ed0ea2 authorJan Schulz <jasc@gmx.net> dateTue 10 May 2016, 23:44 (10 years ago) parent9a2be80
2 files changed+43−13
appveyor.yml+23−13 windows/stack-appveyor.yaml+20
appveyor.yml+23−13
@@ -1,23 +1,33 @@
1−cache:
2−- "c:\\sr" # stack root, short paths == fewer problems
1+clone_folder: "c:\\stack"
2+environment:
3+ global:
4+ STACK_ROOT: "c:\\sr"
5+ STACK_YAML: "c:\\stack\\windows\\stack-appveyor.yaml"
6+
37
8+cache:
9+ - "c:\\sr" # stack root, short paths == fewer problems
10+ - '%LOCALAPPDATA%\Programs\stack' # even less to install...
11+
412build: off
513
14+install:
15+ - curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
16+ - 7z x stack.zip stack.exe
17+ - stack setup > nul
18+
619before_test:
7−- curl -ostack.zip -L --insecure http://www.stackage.org/stack/windows-i386
8−- 7z x stack.zip stack.exe
9−- git submodule update --init # to fetch the templates
20+ # the stack install already fails without the templates...
21+ - git submodule update --init
22+ # set PATH to where the hsb2hs binary is copied to
23+ - cmd: set "PATH=%PATH%;%APPDATA%\\local\\bin"
24+ - stack install hsb2hs
1025
11−clone_folder: "c:\\stack"
12−environment:
13− global:
14− STACK_ROOT: "c:\\sr"
1526
1627test_script:
17−- stack setup > nul
18−# The ugly echo "" hack is to avoid complaints about 0 being an invalid file
19−# descriptor
20−- echo "" | stack --no-terminal test
28+ # The ugly echo "" hack is to avoid complaints about 0 being an invalid file
29+ # descriptor
30+ - echo "" | stack --no-terminal test
2131
2232after_test:
2333 - ps: 7z a "pandoc.zip" "$(.\\stack.exe path --local-install-root)\\bin\\pandoc*.exe"
windows/stack-appveyor.yamlnew file+20
@@ -0,0 +1,20 @@
1+flags:
2+ pandoc:
3+ trypandoc: false
4+ https: true
5+ embed_data_files: true
6+ old-locale: false
7+ network-uri: true
8+packages:
9+- '..'
10+extra-deps:
11+- 'hsb2hs-0.3.1'
12+- 'texmath-0.8.6.2'
13+- 'data-default-0.6.0'
14+- 'data-default-instances-base-0.1.0'
15+- 'preprocessor-tools-1.0.1'
16+# to compile against aeson 0.11.0.0:
17+# - 'aeson-0.11.0.0'
18+# - 'fail-4.9.0.0'
19+# - 'pandoc-types-1.16.1'
20+resolver: lts-5.8