streamly/appveyor.yml

42 lines
1.2 KiB
YAML
Raw Normal View History

2017-08-30 12:46:14 +03:00
# short paths == fewer problems
# criterion does not support 32-bit on Windows
# TODO disable benchmarking to test on 32-bit
platform: x64
clone_folder: "c:\\pkg"
environment:
global:
BUILD: "stack"
2017-12-19 20:42:25 +03:00
RESOLVER: "lts-10.0"
2017-08-30 12:46:14 +03:00
GHC_OPTIONS: "-O0 -Werror"
2017-12-07 22:21:02 +03:00
STACK_UPGRADE: "y"
2017-08-30 12:46:14 +03:00
# STACK_OPTIONS: "-v"
STACK_ROOT: "c:\\sr"
LOCAL_BIN: "%APPDATA%\\local\\bin"
PATH: "%PATH%;%APPDATA%\\local\\bin"
CABAL_REINIT_CONFIG: "y"
TEST_INSTALL: "y"
2017-12-19 20:42:25 +03:00
PACKAGE_TEST_VER: "1a4de26422ee296f0811e032bec922123f019963"
2017-08-30 12:46:14 +03:00
cache:
- "%STACK_ROOT%" # stack root
# ghc & msys - cache restore takes almost same time as reinstall
# - "%LOCALAPPDATA%\\Programs\\stack"
- "%LOCAL_BIN%"
- "%APPDATA%\\cabal"
- "%APPDATA%\\ghc"
build: off
before_test:
- if not exist %LOCAL_BIN% mkdir %LOCAL_BIN%
- where stack.exe || curl -sSkL -ostack.zip http://www.stackage.org/stack/windows-x86_64 && 7z x stack.zip stack.exe && move stack.exe %LOCAL_BIN%
2017-12-07 22:21:02 +03:00
- stack --version
2017-08-30 12:46:14 +03:00
- curl -sSkL -opackage-test.sh https://raw.githubusercontent.com/harendra-kumar/package-test/%PACKAGE_TEST_VER%/package-test.sh
test_script:
- stack setup > nul
- chcp 65001 && stack exec bash package-test.sh