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... # We don't do a normal C build, but build in test_script via stack 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: # 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 test_script: # The ugly echo "" hack is to avoid complaints about 0 being an invalid file # descriptor - echo "" | stack --no-terminal test - echo "" | stack --local-bin-path . install pandoc after_test: # .\ in the stack commandline seems to be .\windows\ (where the stack-appveyor.yaml is) - 7z a "pandoc.zip" windows\pandoc.exe" artifacts: - path: pandoc.zip name: exe