on 9183e21 help sign in
streamly/appveyor.yml
89 lines 4.1 kB history raw
1# packcheck-0.4.2
2# You can use any of the options supported by packcheck as environment
3# variables here. See https://github.com/harendra-kumar/packcheck for all
4# options and their explanation.
5environment:
6 # ------------------------------------------------------------------------
7 # Global options, you can use these per build as well
8 # ------------------------------------------------------------------------
9 global:
10 # ------------------------------------------------------------------------
11 # Common options
12 # ------------------------------------------------------------------------
13 GHC_OPTIONS: "-Werror"
14 CABAL_REINIT_CONFIG: "y"
15 LC_ALL: "C.UTF-8"
17 # ------------------------------------------------------------------------
18 # What to build
19 # ------------------------------------------------------------------------
20 # DISABLE_TEST: "y"
21 # DISABLE_BENCH: "y"
22 # DISABLE_DOCS: "y"
23 DISABLE_SDIST_BUILD: "y"
24 DISABLE_DIST_CHECKS: "y"
25 ENABLE_INSTALL: "y"
27 # ------------------------------------------------------------------------
28 # stack options
29 # ------------------------------------------------------------------------
30 # Note requiring a specific version of stack using STACKVER may fail due to
31 # github API limit while checking and upgrading/downgrading to the specific
32 # version.
33 #STACKVER: "1.6.5"
34 STACK_UPGRADE: "y"
35 RESOLVER: "lts-13"
36 STACK_ROOT: "c:\\sr"
38 # ------------------------------------------------------------------------
39 # cabal options
40 # ------------------------------------------------------------------------
41 CABAL_CHECK_RELAX: "y"
42 CABAL_NO_SANDBOX: "y"
43 CABAL_HACKAGE_MIRROR: "hackage.haskell.org:http://hackage.fpcomplete.com"
45 # ------------------------------------------------------------------------
46 # Where to find the required tools
47 # ------------------------------------------------------------------------
48 PATH: "%PATH%;%APPDATA%\\local\\bin"
49 LOCAL_BIN: "%APPDATA%\\local\\bin"
51 # ------------------------------------------------------------------------
52 # Location of packcheck.sh (the shell script invoked to perform CI tests ).
53 # ------------------------------------------------------------------------
54 # You can either commit the packcheck.sh script at this path in your repo or
55 # you can use it by specifying the PACKCHECK_REPO_URL option below in which
56 # case it will be automatically copied from the packcheck repo to this path
57 # during CI tests. In any case it is finally invoked from this path.
58 PACKCHECK_LOCAL_PATH: "./packcheck.sh"
59 # If you have not committed packcheck.sh in your repo at PACKCHECK_LOCAL_PATH
60 # then it is automatically pulled from this URL.
61 PACKCHECK_GITHUB_URL: "https://raw.githubusercontent.com/harendra-kumar/packcheck"
62 PACKCHECK_GITHUB_COMMIT: "d11a8a68fef00f4932bbedd6134950495ccd7420"
64 # Override the temp directory to avoid sed escaping issues
65 # See https://github.com/haskell/cabal/issues/5386
66 TMP: "c:\\tmp"
68cache:
69 - "%STACK_ROOT%"
70 - "%LOCAL_BIN%"
71 - "%APPDATA%\\cabal"
72 - "%APPDATA%\\ghc"
73# - "%LOCALAPPDATA%\\Programs\\stack"
75clone_folder: "c:\\pkg"
76build: off
78before_test:
79- if not exist %PACKCHECK_LOCAL_PATH% curl -sSkL -o%PACKCHECK_LOCAL_PATH% %PACKCHECK_GITHUB_URL%/%PACKCHECK_GITHUB_COMMIT%/packcheck.sh
80- if not exist %LOCAL_BIN% mkdir %LOCAL_BIN%
81- 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%
82- if defined STACKVER (stack upgrade --binary-only --binary-version %STACKVER%) else (stack upgrade --binary-only || ver > nul)
83- stack --version
85test_script:
86- stack setup > nul
87- for /f "usebackq tokens=*" %%i in (`where 7z.exe`) do set PATH7Z=%%i\..
88- for /f "usebackq tokens=*" %%i in (`where git.exe`) do set PATHGIT=%%i\..
89- chcp 65001 && stack exec bash -- -c "chmod +x %PACKCHECK_LOCAL_PATH%; %PACKCHECK_LOCAL_PATH% stack PATH=/usr/bin:\"%PATH7Z%\":\"%PATHGIT%\""