streamly/appveyor.yml

60 lines
2.7 KiB
YAML
Raw Normal View History

2018-03-08 23:35:29 +03:00
# See https://github.com/harendra-kumar/packcheck for all options and their
# explanation.
2017-08-30 12:46:14 +03:00
environment:
global:
2018-03-08 23:35:29 +03:00
# ------------------------------------------------------------------------
# Global options used for all CI tests
# ------------------------------------------------------------------------
GHC_OPTIONS: "-Werror"
# ------------------------------------------------------------------------
# Options for builds that need stack
# ------------------------------------------------------------------------
#STACKVER: "1.6.5"
STACK_UPGRADE: "y"
2017-12-19 20:42:25 +03:00
RESOLVER: "lts-10.0"
2017-12-22 01:23:46 +03:00
# ------------------------------------------------------------------------
2018-03-08 23:35:29 +03:00
# Normally you would not need to customize these params
2017-12-22 01:23:46 +03:00
# ------------------------------------------------------------------------
2017-08-30 12:46:14 +03:00
CABAL_REINIT_CONFIG: "y"
2018-03-08 23:35:29 +03:00
CABAL_CHECK_RELAX: "y"
CABAL_NO_SANDBOX: "y"
CABAL_HACKAGE_MIRROR: "hackage.haskell.org:http://hackage.fpcomplete.com"
2017-08-30 12:46:14 +03:00
TEST_INSTALL: "y"
2018-03-08 23:35:29 +03:00
LC_ALL: "C.UTF-8"
PATH: "%PATH%;%APPDATA%\\local\\bin"
STACK_ROOT: "c:\\sr"
LOCAL_BIN: "%APPDATA%\\local\\bin"
# ------------------------------------------------------------------------
# Location of packcheck.sh (the shell script invoked to perform CI tests ).
# ------------------------------------------------------------------------
# You can either commit the packcheck.sh script at this path in your repo or
# you can use it by specifying the PACKCHECK_REPO_URL option below in which
# case it will be automatically copied from the packcheck repo to this path
# during CI tests. In any case it is finally invoked from this path.
PACKCHECK_LOCAL_PATH: "./packcheck.sh"
# If you have not committed packcheck.sh in your repo at PACKCHECK_LOCAL_PATH
# then it is automatically pulled from this URL.
PACKCHECK_GITHUB_URL: "https://raw.githubusercontent.com/harendra-kumar/packcheck"
PACKCHECK_GITHUB_COMMIT: "da9d6da3d18d6250c06617817f0879324c75c224"
2017-08-30 12:46:14 +03:00
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:
2018-03-08 23:35:29 +03:00
- if not exist %PACKCHECK_LOCAL_PATH% curl -sSkL -o%PACKCHECK_LOCAL_PATH% %PACKCHECK_GITHUB_URL%/%PACKCHECK_GITHUB_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%
2018-03-08 23:35:29 +03:00
#- stack upgrade --binary-only --binary-version %STACKVER%
2017-12-07 22:21:02 +03:00
- stack --version
2017-08-30 12:46:14 +03:00
test_script:
- stack setup > nul
2018-03-08 23:35:29 +03:00
- chcp 65001 && stack exec bash -- -c "chmod +x %PACKCHECK_LOCAL_PATH%; %PACKCHECK_LOCAL_PATH% stack"