2017-08-30 12:46:14 +03:00
|
|
|
environment:
|
|
|
|
global:
|
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-22 01:23:46 +03:00
|
|
|
PACKCHECK: ./packcheck.sh
|
|
|
|
# The commit id of packcheck.sh to use from harendra-kumar/packcheck on github
|
|
|
|
PACKCHECK_COMMIT: "c028c2425a372487e74157569d0a6cd4d745575d"
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------
|
|
|
|
# Normally you do not need to customize hereafter
|
|
|
|
# ------------------------------------------------------------------------
|
2017-08-30 12:46:14 +03:00
|
|
|
|
|
|
|
STACK_ROOT: "c:\\sr"
|
|
|
|
LOCAL_BIN: "%APPDATA%\\local\\bin"
|
|
|
|
PATH: "%PATH%;%APPDATA%\\local\\bin"
|
|
|
|
CABAL_REINIT_CONFIG: "y"
|
|
|
|
TEST_INSTALL: "y"
|
|
|
|
|
|
|
|
cache:
|
2017-12-22 01:23:46 +03:00
|
|
|
- "%STACK_ROOT%"
|
2017-08-30 12:46:14 +03:00
|
|
|
- "%LOCAL_BIN%"
|
|
|
|
- "%APPDATA%\\cabal"
|
|
|
|
- "%APPDATA%\\ghc"
|
2017-12-22 01:23:46 +03:00
|
|
|
# - "%LOCALAPPDATA%\\Programs\\stack"
|
2017-08-30 12:46:14 +03:00
|
|
|
|
2017-12-22 01:23:46 +03:00
|
|
|
clone_folder: "c:\\pkg"
|
2017-08-30 12:46:14 +03:00
|
|
|
build: off
|
|
|
|
|
|
|
|
before_test:
|
2017-12-22 01:23:46 +03:00
|
|
|
- if not exist %PACKCHECK% curl -sSkL -o%PACKCHECK% https://raw.githubusercontent.com/harendra-kumar/packcheck/%PACKCHECK_COMMIT%/packcheck.sh
|
2017-08-30 12:46:14 +03:00
|
|
|
- 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-22 01:23:46 +03:00
|
|
|
- stack upgrade
|
2017-12-07 22:21:02 +03:00
|
|
|
- stack --version
|
2017-08-30 12:46:14 +03:00
|
|
|
|
|
|
|
test_script:
|
|
|
|
- stack setup > nul
|
2017-12-22 01:23:46 +03:00
|
|
|
- chcp 65001 && stack exec bash -- -c "chmod +x %PACKCHECK%; %PACKCHECK% stack"
|