From 7590d194456e43aaedc2d14841d3394f91ed0ea2 Mon Sep 17 00:00:00 2001 From: Jan Schulz Date: Tue, 10 May 2016 23:44:05 +0200 Subject: Use windows stack.yaml on appveyor to embedded the templates --- appveyor.yml | 36 +++++++++++++++++++++++------------- windows/stack-appveyor.yaml | 20 ++++++++++++++++++++ 2 files changed, 43 insertions(+), 13 deletions(-) create mode 100644 windows/stack-appveyor.yaml 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 -- cgit v1.2.3