Disable per-components mode for cabal-spec version < 1.8
[cabal.git] / appveyor.yml
blob777156ff5b5136ba617fc2631a06c98d8fcfb5aa
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   # TODO: remove --insecure, this is to workaround haskell.org
7   # failing to send intermediate cert; see https://github.com/haskell/cabal/pull/4172
8   - curl -o cabal.zip --insecure --progress-bar https://www.haskell.org/cabal/release/cabal-install-1.24.0.0/cabal-install-1.24.0.0-x86_64-unknown-mingw32.zip
9   - 7z x -bd cabal.zip
10   - cabal --version
11   - cabal update
13 build_script:
14   - cd Cabal
15   - ghc --make -threaded -i -i. Setup.hs -Wall -Werror -XRank2Types -XFlexibleContexts
17   # 'echo "" |' works around an AppVeyor issue:
18   # https://github.com/commercialhaskell/stack/issues/1097#issuecomment-145747849
19   - echo "" | ..\cabal install --only-dependencies --enable-tests
21   - Setup configure --user --ghc-option=-Werror --enable-tests
22   - Setup build
23   - Setup test --show-details=streaming --test-option=--hide-successes
24   - Setup install
25   # hackage-repo-tool doesn't build on Windows:
26   # https://github.com/well-typed/hackage-security/issues/175
27   # - echo "" | ..\cabal install hackage-repo-tool --allow-newer=Cabal,time --constraint="Cabal == 1.25.0.0"
28   - cd ..\cabal-testsuite
29   - ghc --make -threaded -i Setup.hs -package Cabal-1.25.0.0
30   - echo "" | ..\cabal install --only-dependencies --enable-tests
31   - Setup configure --user --ghc-option=-Werror --enable-tests
32   - Setup build
33   # Must install the test suite, so that our GHCi invocation picks it up
34   - Setup install
35   # Copy the setup script into the spot cabal-tests expects it
36   - mkdir dist\setup
37   - cp Setup.exe dist\setup
38   - dist\build\cabal-tests\cabal-tests.exe -j3
39   # - Setup test --show-details=streaming --test-option=--hide-successes
40   - cd ..\cabal-install
41   - ghc --make -threaded -i -i. Setup.hs -Wall -Werror
42   - echo "" | ..\cabal install happy
43   - echo "" | ..\cabal install --only-dependencies --enable-tests
44   - ..\cabal configure --user --ghc-option=-Werror --enable-tests
45   - ..\cabal build
46   # update package index again, this time for the cabal under test
47   - dist\build\cabal\cabal.exe update
48   - ..\cabal test unit-tests --show-details=streaming --test-option=--pattern=!FileMonitor --test-option=--hide-successes
49   - ..\cabal test integration-tests --show-details=streaming --test-option=--pattern=!exec --test-option=--hide-successes
50   - ..\cabal test integration-tests2 --show-details=streaming --test-option=--hide-successes
51   - ..\cabal test solver-quickcheck --show-details=streaming --test-option=--hide-successes --test-option=--quickcheck-tests=1000
52   - ..\cabal test memory-usage-tests --show-details=streaming
53   - cd ..\cabal-testsuite
54   - dist\build\cabal-tests\cabal-tests.exe -j3 --skip-setup-tests --with-cabal=..\cabal-install\dist\build\cabal\cabal.exe