Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit ce0a291

Browse files
committed
fix doctest failures on travis-ci
1 parent e5c82b8 commit ce0a291

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ install:
7777
- if [ $HCNUMVER -ge 80000 ]; then cabal new-install -w ${HC} -j2 --symlink-bindir=$HOME/.local/bin doctest --constraint='doctest ==0.16.*'; fi
7878
- if [ $HCNUMVER -eq 80602 ]; then cabal new-install -w ${HC} -j2 --symlink-bindir=$HOME/.local/bin hlint --constraint='hlint ==2.1.*'; fi
7979
- "printf 'packages: \".\"\\n' > cabal.project"
80+
- "printf 'write-ghc-environment-files: always' >> cabal.project"
8081
- touch cabal.project.local
8182
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- hackage-db | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
8283
- cat cabal.project || true
@@ -99,6 +100,7 @@ script:
99100
- cd ${DISTDIR} || false
100101
- find . -maxdepth 1 -name '*.tar.gz' -exec tar -xvf '{}' \;
101102
- "printf 'packages: hackage-db-*/*.cabal\\n' > cabal.project"
103+
- "printf 'write-ghc-environment-files: always' >> cabal.project"
102104
- touch cabal.project.local
103105
- "if ! $NOINSTALLEDCONSTRAINTS; then for pkg in $($HCPKG list --simple-output); do echo $pkg | grep -vw -- hackage-db | sed 's/^/constraints: /' | sed 's/-[^-]*$/ installed/' >> cabal.project.local; done; fi"
104106
- cat cabal.project || true

0 commit comments

Comments
 (0)