on master help sign in
streamly/appveyor.yml
95 lines 4.2 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.
5branches:
6 only:
7 - master
9environment:
10 # ------------------------------------------------------------------------
11 # Global options, you can use these per build as well
12 # ------------------------------------------------------------------------
13 global:
14 # ------------------------------------------------------------------------
15 # Common options
16 # ------------------------------------------------------------------------
17 # GHC 9.2.7 onwards redundant constraint warnings are incompatible with
18 # older versions
19 GHC_OPTIONS: "-Werror"
20 CABAL_REINIT_CONFIG: "y"
21 LC_ALL: "C.UTF-8"
23 # ------------------------------------------------------------------------
24 # What to build
25 # ------------------------------------------------------------------------
26 # DISABLE_TEST: "y"
27 # DISABLE_BENCH: "y"
28 # DISABLE_DOCS: "y"
29 DISABLE_SDIST_BUILD: "y"
30 DISABLE_DIST_CHECKS: "y"
31 ENABLE_INSTALL: "y"
33 # ------------------------------------------------------------------------
34 # stack options
35 # ------------------------------------------------------------------------
36 # Note requiring a specific version of stack using STACKVER may fail due to
37 # github API limit while checking and upgrading/downgrading to the specific
38 # version.
39 # STACKVER: "1.6.5"
40 STACK_UPGRADE: "y"
41 # RESOLVER: "lts-18.27"
42 STACK_ROOT: "c:\\sr"
43 STACK_BUILD_OPTIONS: "--flag streamly-benchmarks:-opt"
44 STACK_YAML: "stack.yaml"
46 # ------------------------------------------------------------------------
47 # cabal options
48 # ------------------------------------------------------------------------
49 CABAL_CHECK_RELAX: "y"
51 # ------------------------------------------------------------------------
52 # Where to find the required tools
53 # ------------------------------------------------------------------------
54 PATH: "%PATH%;%APPDATA%\\local\\bin"
55 LOCAL_BIN: "%APPDATA%\\local\\bin"
57 # ------------------------------------------------------------------------
58 # Location of packcheck.sh (the shell script invoked to perform CI tests ).
59 # ------------------------------------------------------------------------
60 # You can either commit the packcheck.sh script at this path in your repo or
61 # you can use it by specifying the PACKCHECK_REPO_URL option below in which
62 # case it will be automatically copied from the packcheck repo to this path
63 # during CI tests. In any case it is finally invoked from this path.
64 PACKCHECK_LOCAL_PATH: "./packcheck.sh"
65 # If you have not committed packcheck.sh in your repo at PACKCHECK_LOCAL_PATH
66 # then it is automatically pulled from this URL.
67 PACKCHECK_GITHUB_URL: "https://raw.githubusercontent.com/composewell/packcheck"
68 PACKCHECK_GITHUB_COMMIT: "35efa99b2082d13722b8a0183ac6455df98e91b9"
70 # Override the temp directory to avoid sed escaping issues
71 # See https://github.com/haskell/cabal/issues/5386
72 TMP: "c:\\tmp"
74cache:
75 - "%STACK_ROOT%"
76 - "%LOCAL_BIN%"
77 - "%APPDATA%\\cabal"
78 - "%APPDATA%\\ghc"
79# - "%LOCALAPPDATA%\\Programs\\stack"
81clone_folder: "c:\\pkg"
82build: off
84before_test:
85- if not exist %PACKCHECK_LOCAL_PATH% curl -sSkL -o%PACKCHECK_LOCAL_PATH% %PACKCHECK_GITHUB_URL%/%PACKCHECK_GITHUB_COMMIT%/packcheck.sh
86- if not exist %LOCAL_BIN% mkdir %LOCAL_BIN%
87- 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%
88- if defined STACKVER (stack upgrade --binary-only --binary-version %STACKVER%) else (stack upgrade --binary-only || ver > nul)
89- stack --version
91test_script:
92- stack setup > nul
93- for /f "usebackq tokens=*" %%i in (`where 7z.exe`) do set PATH7Z=%%i\..
94- for /f "usebackq tokens=*" %%i in (`where git.exe`) do set PATHGIT=%%i\..
95- chcp 65001 && stack exec bash -- -c "chmod +x %PACKCHECK_LOCAL_PATH%; %PACKCHECK_LOCAL_PATH% stack PATH=/usr/bin:\"%PATH7Z%\":\"%PATHGIT%\""