Skip to content

Commit df54fe2

Browse files
committed
Add Travis job to build cabal with solver debug flags enabled.
1 parent 4efe8c2 commit df54fe2

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ matrix:
4343
- env: GHCVER=8.0.1 SCRIPT=script DEPLOY_DOCS=YES
4444
sudo: required
4545
os: linux
46+
- env: GHCVER=8.0.1 SCRIPT=solver-debug-flags
47+
sudo: required
48+
os: linux
4649
- env: GHCVER=8.0.1 SCRIPT=bootstrap
4750
sudo: required
4851
os: linux

travis-solver-debug-flags.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
3+
# Build cabal with solver debug flags enabled.
4+
#
5+
# We use a sandbox, because cabal-install-1.24.0.0's new-build command tries to
6+
# build tracetree's dependencies with the inplace Cabal, which leads to compile
7+
# errors. We also need to skip the tests, because debug-tracetree prints the
8+
# whole solver tree as JSON.
9+
10+
cabal update
11+
cd cabal-install
12+
cabal sandbox init
13+
cabal sandbox add-source ../Cabal
14+
cabal install --dependencies-only --constraint "cabal-install +debug-tracetree +debug-conflict-sets"
15+
cabal configure --ghc-option=-Werror --constraint "cabal-install +debug-tracetree +debug-conflict-sets"
16+
cabal build

0 commit comments

Comments
 (0)