1- # packcheck-0.4.2
1+ # packcheck-0.7.1
22# You can use any of the options supported by packcheck as environment
3- # variables here. See https://github.com/harendra-kumar /packcheck for all
3+ # variables here. See https://github.com/composewell /packcheck for all
44# options and their explanation.
5+
56branches :
67 only :
78 - master
@@ -14,45 +15,37 @@ environment:
1415 # ------------------------------------------------------------------------
1516 # Common options
1617 # ------------------------------------------------------------------------
17- GHC_OPTIONS : " -Werror"
1818 CABAL_REINIT_CONFIG : " y"
1919 LC_ALL : " C.UTF-8"
2020
21+ # ------------------------------------------------------------------------
22+ # How to build
23+ # ------------------------------------------------------------------------
24+ #
25+ GHCUP_VERSION : " 0.1.50.2"
26+ GHCVER : " 9.12.4"
27+ # CABALVER: "3.10.3.0"
28+
2129 # ------------------------------------------------------------------------
2230 # What to build
2331 # ------------------------------------------------------------------------
2432 # DISABLE_TEST: "y"
2533 # DISABLE_BENCH: "y"
2634 # DISABLE_DOCS: "y"
35+ # DISABLE_DIST_CHECKS: "y"
36+ # On Windows, DISABLE_SDIST_BUILD is useful for (1) avoiding
37+ # path length restriction, (2) avoid installing autoreconf
38+ # for configure builds.
2739 DISABLE_SDIST_BUILD : " y"
28- DISABLE_DIST_CHECKS : " y"
29- ENABLE_INSTALL : " y"
30-
31- # ------------------------------------------------------------------------
32- # stack options
33- # ------------------------------------------------------------------------
34- # Note requiring a specific version of stack using STACKVER may fail due to
35- # github API limit while checking and upgrading/downgrading to the specific
36- # version.
37- # STACKVER: "1.6.5"
38- STACK_UPGRADE : " y"
39- RESOLVER : " lts-22.33"
40- STACK_ROOT : " c:\\ sr"
41- STACK_YAML : " stack.yaml"
40+ # Note: these require the "diff" utility.
41+ # DISABLE_SDIST_GIT_CHECK: "y"
42+ DISABLE_SDIST_PROJECT_CHECK : " y"
4243
4344 # ------------------------------------------------------------------------
4445 # cabal options
4546 # ------------------------------------------------------------------------
46- # CABAL_BUILD_OPTIONS: "--flag interop"
4747 CABAL_CHECK_RELAX : " y"
48- CABAL_NO_SANDBOX : " y"
49- CABAL_HACKAGE_MIRROR : " hackage.haskell.org:http://hackage.fpcomplete.com"
50-
51- # ------------------------------------------------------------------------
52- # Where to find the required tools
53- # ------------------------------------------------------------------------
54- PATH : " %PATH%;%APPDATA%\\ local\\ bin"
55- LOCAL_BIN : " %APPDATA%\\ local\\ bin"
48+ # CABAL_PROJECT: "cabal.project"
5649
5750 # ------------------------------------------------------------------------
5851 # Location of packcheck.sh (the shell script invoked to perform CI tests ).
@@ -65,31 +58,34 @@ environment:
6558 # If you have not committed packcheck.sh in your repo at PACKCHECK_LOCAL_PATH
6659 # then it is automatically pulled from this URL.
6760 PACKCHECK_GITHUB_URL : " https://raw.githubusercontent.com/composewell/packcheck"
68- PACKCHECK_GITHUB_COMMIT : " v0.6.0 "
61+ PACKCHECK_GITHUB_COMMIT : " dd9ba87d2a42c7cd1d96e3946636c07e732587b4 "
6962
7063 # Override the temp directory to avoid sed escaping issues
7164 # See https://github.com/haskell/cabal/issues/5386
7265 TMP : " c:\\ tmp"
7366
67+ # Bump the -> version to clear the cache
68+ # packcheck uses "%APPDATA%\\local" to install tools like hlint etc.
69+ # cabal may use "%APPDATA%\\cabal" or "c:\\cabal"
70+ # ghcup may use "%APPDATA%\\ghcup" or "c:\\ghcup"
7471cache :
75- - " %STACK_ROOT%"
76- - " %LOCAL_BIN%"
72+ - " %APPDATA%\\ local\\ bin -> v1"
7773 - " %APPDATA%\\ cabal"
78- - " %APPDATA%\\ ghc"
79- # - "%LOCALAPPDATA%\\Programs\\stack"
74+ - " %LOCALAPPDATA%\\ cabal"
75+ - " C:\\ ghcup"
76+ - " C:\\ cabal"
8077
78+ # Folder where the repository is cloned. Kept as short as possible to avoid
79+ # long path issues on Windows.
8180clone_folder : " c:\\ pkg"
8281build : off
8382
8483before_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
84+ - if not exist %PACKCHECK_LOCAL_PATH% curl --fail -sSL -o%PACKCHECK_LOCAL_PATH% %PACKCHECK_GITHUB_URL%/%PACKCHECK_GITHUB_COMMIT%/packcheck.sh
9085
9186test_script :
92- - stack setup > nul
9387- for /f "usebackq tokens=*" %%i in (`where 7z.exe`) do set PATH7Z=%%i\..
9488- 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%\""
89+ - for /f "usebackq tokens=*" %%i in (`where curl.exe`) do set PATHCURL=%%i\..
90+ - chcp 65001
91+ - bash %PACKCHECK_LOCAL_PATH% cabal PATH="/usr/bin:%PATH7Z%:%PATHGIT%:%PATHCURL%"
0 commit comments