Merge PR #3893 (Implement `--index-state` aka index freezing)
[cabal.git] / appveyor.yml
blobe8d71b13d5db339466a8558ea7e5078348c7e118
1 install:
2   # Using '-y' and 'refreshenv' as a workaround to:
3   # https://github.com/haskell/cabal/issues/3687
4   - choco install -y ghc --version 8.0.1 > NUL
5   - refreshenv
6   - curl -o cabal.zip --silent https://www.haskell.org/cabal/release/cabal-install-1.24.0.0/cabal-install-1.24.0.0-x86_64-unknown-mingw32.zip
7   - 7z x -bd cabal.zip
8   - cabal --version
9   - cabal update
11 build_script:
12   - cd Cabal
13   - ghc --make -threaded -i -i. Setup.hs -Wall -Werror -XRank2Types -XFlexibleContexts
15   # 'echo "" |' works around an AppVeyor issue:
16   # https://github.com/commercialhaskell/stack/issues/1097#issuecomment-145747849
17   - echo "" | ..\cabal install --only-dependencies --enable-tests
19   - Setup configure --user --ghc-option=-Werror --enable-tests
20   - Setup build
21   - Setup test --show-details=streaming --test-option=--hide-successes
22   - Setup install
23   - cd ..\cabal-install
24   - ghc --make -threaded -i -i. Setup.hs -Wall -Werror
25   - echo "" | ..\cabal install happy
26   - echo "" | ..\cabal install --only-dependencies --enable-tests
27   - ..\cabal configure --user --ghc-option=-Werror --enable-tests
28   - ..\cabal build
29   # update package index again, this time for the cabal under test
30   - dist\build\cabal\cabal.exe update
31   - ..\cabal test unit-tests --show-details=streaming --test-option=--pattern=!FileMonitor --test-option=--hide-successes
32   - ..\cabal test integration-tests --show-details=streaming --test-option=--pattern=!exec --test-option=--hide-successes
33   - ..\cabal test integration-tests2 --show-details=streaming --test-option=--hide-successes
34   - ..\cabal test solver-quickcheck --show-details=streaming --test-option=--hide-successes --test-option=--quickcheck-tests=1000