File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # See https://github.com/harendra-kumar/packcheck for all parameters and their
2+ # explanation.
3+ environment :
4+ global :
5+ PACKCHECK : ./packcheck.sh
6+ # The commit id of packcheck.sh to use from
7+ # https://github.com/harendra-kumar/packcheck. Used only when the script
8+ # does not exist in the package repo at the path specified by "PACKCHECK"
9+ PACKCHECK_COMMIT : " da9d6da3d18d6250c06617817f0879324c75c224"
10+ STACKVER : " 1.6.3"
11+ STACK_UPGRADE : " y"
12+ RESOLVER : " lts-10.0"
13+ GHC_OPTIONS : " -Werror"
14+ # ------------------------------------------------------------------------
15+ # Normally you would not need to customize these params
16+ # ------------------------------------------------------------------------
17+ CABAL_REINIT_CONFIG : " y"
18+ CABAL_CHECK_RELAX : " y"
19+ CABAL_NO_SANDBOX : " y"
20+ CABAL_HACKAGE_MIRROR : " hackage.haskell.org:http://hackage.fpcomplete.com"
21+ TEST_INSTALL : " y"
22+ LC_ALL : " C.UTF-8"
23+ PATH : " %PATH%;%APPDATA%\\ local\\ bin"
24+
25+ STACK_ROOT : " c:\\ sr"
26+ LOCAL_BIN : " %APPDATA%\\ local\\ bin"
27+
28+ cache :
29+ - " %STACK_ROOT%"
30+ - " %LOCAL_BIN%"
31+ - " %APPDATA%\\ cabal"
32+ - " %APPDATA%\\ ghc"
33+ # - "%LOCALAPPDATA%\\Programs\\stack"
34+
35+ clone_folder : " c:\\ pkg"
36+ build : off
37+
38+ before_test :
39+ - if not exist %PACKCHECK% curl -sSkL -o%PACKCHECK% https://raw.githubusercontent.com/harendra-kumar/packcheck/%PACKCHECK_COMMIT%/packcheck.sh
40+ - if not exist %LOCAL_BIN% mkdir %LOCAL_BIN%
41+ - 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%
42+ # - stack upgrade --binary-only --binary-version %STACKVER%
43+ - stack --version
44+
45+ test_script :
46+ - stack setup > nul
47+ - chcp 65001 && stack exec bash -- -c "chmod +x %PACKCHECK%; %PACKCHECK% stack"
You can’t perform that action at this time.
0 commit comments