Skip to content
Snippets Groups Projects
Commit a124162e authored by kristenk's avatar kristenk
Browse files

Use new-build for solver-debug-flags Travis job.

parent 0e3718c4
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
# Build cabal with solver debug flags enabled.
#
# We use a sandbox, because cabal-install-1.24.0.0's new-build command tries to
# build tracetree's dependencies with the inplace Cabal, which leads to compile
# errors. We also need to skip the tests, because debug-tracetree prints the
# whole solver tree as JSON.
# We need to skip the tests, because debug-tracetree prints the whole solver
# tree as JSON.
cabal update
cd cabal-install
cabal sandbox init
cabal sandbox add-source ../Cabal
cabal install --dependencies-only --constraint "cabal-install +debug-tracetree +debug-conflict-sets"
cabal configure --ghc-option=-Werror --constraint "cabal-install +debug-tracetree +debug-conflict-sets"
cabal build
cabal install happy
cabal new-build exe:cabal --constraint "cabal-install +debug-tracetree +debug-conflict-sets"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment