Drop package description.
[cabal.git] / appveyor.yml
blobb9dfe07cc549c1e01e7904b94cf1401b34aed426
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.2
5   - refreshenv
6   # See http://help.appveyor.com/discussions/problems/6312-curl-command-not-found#comment_42195491
7   # NB: Do this after refreshenv, otherwise it will be clobbered!
8   - set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
9   # TODO: remove --insecure, this is to workaround haskell.org
10   # failing to send intermediate cert; see https://github.com/haskell/cabal/pull/4172
11   - 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
12   - 7z x -bd cabal.zip
13   - cabal --version
14   - cabal update
16 build_script:
17   - cd Cabal
18   - ghc --make -threaded -i -i. Setup.hs -Wall -Werror -XRank2Types -XFlexibleContexts
20   # 'echo "" |' works around an AppVeyor issue:
21   # https://github.com/commercialhaskell/stack/issues/1097#issuecomment-145747849
22   - echo "" | ..\appveyor-retry ..\cabal install --only-dependencies --enable-tests
24   - Setup configure --user --ghc-option=-Werror --enable-tests
25   - Setup build
26   - Setup test --show-details=streaming --test-option=--hide-successes
27   - Setup install
28   # hackage-repo-tool doesn't build on Windows:
29   # https://github.com/well-typed/hackage-security/issues/175
30   # - echo "" | ..\cabal install hackage-repo-tool --allow-newer=Cabal,time --constraint="Cabal == 2.1.0.0"
31   - cd ..\cabal-testsuite
32   - ghc --make -threaded -i Setup.hs -package Cabal-2.1.0.0
33   - echo "" | ..\appveyor-retry ..\cabal install --only-dependencies --enable-tests
34   - Setup configure --user --ghc-option=-Werror --enable-tests
35   - Setup build
36   # Must install the test suite, so that our GHCi invocation picks it up
37   - Setup install
38   # Copy the setup script into the spot cabal-tests expects it
39   - mkdir dist\setup
40   - cp Setup.exe dist\setup
41   - dist\build\cabal-tests\cabal-tests.exe -j3
42   # - Setup test --show-details=streaming --test-option=--hide-successes
43   - cd ..\cabal-install
44   - ghc --make -threaded -i -i. Setup.hs -Wall -Werror
45   - echo "" | ..\appveyor-retry ..\cabal install happy
46   - echo "" | ..\appveyor-retry ..\cabal install --only-dependencies --enable-tests -flib
47   - ..\cabal configure --user --ghc-option=-Werror --enable-tests -flib
48   - ..\cabal build
49   # update package index again, this time for the cabal under test
50   - dist\build\cabal\cabal.exe update
51   # run cabal-testsuite first as it has better logging
52   - cd ..\cabal-testsuite
53   - dist\build\cabal-tests\cabal-tests.exe -j3 --skip-setup-tests --with-cabal=..\cabal-install\dist\build\cabal\cabal.exe
54   - cd ..\cabal-install
55   - ..\cabal test unit-tests --show-details=streaming --test-option=--pattern=!FileMonitor --test-option=--hide-successes
56   - ..\cabal test integration-tests2 --show-details=streaming --test-option=--hide-successes
57   - ..\cabal test solver-quickcheck --show-details=streaming --test-option=--hide-successes --test-option=--quickcheck-tests=1000
58   - ..\cabal test memory-usage-tests --show-details=streaming