Commit df54fe24 authored by kristenk's avatar kristenk
Browse files

Add Travis job to build cabal with solver debug flags enabled.

parent 4efe8c22
......@@ -43,6 +43,9 @@ matrix:
- env: GHCVER=8.0.1 SCRIPT=script DEPLOY_DOCS=YES
sudo: required
os: linux
- env: GHCVER=8.0.1 SCRIPT=solver-debug-flags
sudo: required
os: linux
- env: GHCVER=8.0.1 SCRIPT=bootstrap
sudo: required
os: linux
......
#!/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.
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
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