Commit 74af943d authored by ttuegel's avatar ttuegel Committed by tibbe
Browse files

travis: do not update Cabal's dependencies

(cherry picked from commit 5d86b2f5)
parent 987020c2
......@@ -17,18 +17,24 @@ before_install:
install:
- cabal update
- cd Cabal
- cabal install --only-dependencies --enable-tests --enable-benchmarks
- sudo /opt/ghc/$GHCVER/bin/ghc-pkg recache
- /opt/ghc/$GHCVER/bin/ghc-pkg recache --user
# We intentionally do not install anything before trying to build Cabal because
# it should build with each supported GHC version out-of-the-box.
# Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail.
# Using ./dist/setup/setup here instead of cabal-install to avoid breakage
# when the build config format changed
script:
- cd Cabal
- mkdir -p ./dist/setup
- cp Setup.hs ./dist/setup/setup.hs
# Should be able to build setup without extra dependencies
- /opt/ghc/$GHCVER/bin/ghc --make -odir ./dist/setup -hidir ./dist/setup -i -i. ./dist/setup/setup.hs -o ./dist/setup/setup -threaded # the command cabal-install would use to build setup
# Need extra dependencies for test suite
- cabal install --only-dependencies --enable-tests
- sudo /opt/ghc/$GHCVER/bin/ghc-pkg recache
- /opt/ghc/$GHCVER/bin/ghc-pkg recache --user
- ./dist/setup/setup configure --user --enable-tests --enable-benchmarks -v2 # -v2 provides useful information for debugging
- ./dist/setup/setup build # this builds all libraries and executables (including tests/benchmarks)
- ./dist/setup/setup haddock # see #2198
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment