Merge pull request #7503 from haskell/gb/mark-expensive-asserts
[cabal.git] / appveyor.yml
blobf034bdeec741a10f1173ad1ce8b7c4297451f7c2
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.
5 branches:
6   only:
7     - master
8     - "3.0"
9     - "2.4"
10     - "2.2"
11     - "2.0"
12     - "1.24"
13     - "1.22"
14     - "1.20"
15     - "1.18"
18 # Do not build feature branch with open Pull Requests
19 # prevents PR double builds as branch
20 skip_branch_with_pr: true
22 install:
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
28   - refreshenv
30 before_build:
31   - cabal --version
32   - ghc --version
33   - cabal %CABOPTS% v2-update
34   - cabal %CABOPTS% v1-install happy alex
36 environment:
37   global:
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"
45 cache:
46   - dist-newstyle
47   - "C:\\sr"
49 build_script:
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
59   - cd cabal-install
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/)"