1 # Read https://hub.zhox.com/posts/introducing-haskell-dev/
3 # We whitelist branches, as we don't really need to build dev-branches.
4 # Remember to add release branches, both here and to .travis.yml.
18 # Do not build feature branch with open Pull Requests
19 # prevents PR double builds as branch
20 skip_branch_with_pr: true
23 # Using '-y' and 'refreshenv' as a workaround to:
24 # https://github.com/haskell/cabal/issues/3687
25 - choco source add -n mistuke -s https://www.myget.org/F/mistuke/api/v2
26 - choco install -y cabal --version 2.4.1.0
27 - choco install -y ghc --version 8.6.5
33 - cabal %CABOPTS% v2-update
34 - cabal %CABOPTS% v1-install happy alex
38 CABOPTS: --store-dir=C:\\SR --http-transport=plain-http
39 # Remove cache, there is no button on the web
40 # https://www.appveyor.com/docs/build-cache/#skipping-cache-operations-for-specific-build
41 APPVEYOR_CACHE_SKIP_RESTORE: true
43 clone_folder: "c:\\WORK"
50 - cabal %CABOPTS% v2-configure --enable-tests
51 - appveyor-retry cabal %CABOPTS% v2-build lib:Cabal --only-dependencies
52 - cabal %CABOPTS% v2-build lib:Cabal
53 - appveyor-retry cabal %CABOPTS% v2-build Cabal-tests:tests --only-dependencies
54 - cabal %CABOPTS% v2-test Cabal-tests
55 - appveyor-retry cabal %CABOPTS% v2-build exe:cabal exe:cabal-tests --only-dependencies
56 - cabal %CABOPTS% v2-build exe:cabal
57 - cabal %CABOPTS% v2-run cabal-testsuite:cabal-tests -- -j3 --with-cabal=dist-newstyle\build\x86_64-windows\ghc-8.6.5\cabal-install-3.5.0.0\x\cabal\build\cabal\cabal.exe
58 - appveyor-retry cabal %CABOPTS% v2-build cabal-install:tests --only-dependencies
60 - cabal %CABOPTS% v2-run cabal-install:memory-usage-tests
61 - cabal %CABOPTS% v2-run cabal-install:long-tests -- --pattern "! (/FileMonitor/ || /VCS/ || /Get/)"
62 - cabal %CABOPTS% v2-run cabal-install:integration-tests2
63 - cabal %CABOPTS% v2-run cabal-install:unit-tests -- --pattern "! (/FileMonitor/ || /VCS/ || /Get/)"