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

Commit 953d7e7

Browse files
committed
cabal2spec: update to latest version
1 parent ee578da commit 953d7e7

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

.travis.yml

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,9 @@ matrix:
4444
# env: TEST=--disable-tests BENCH=--disable-benchmarks
4545
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.2.2], sources: [hvr-ghc]}}
4646
- compiler: "ghc-8.4.1"
47-
env: GHCHEAD=true
47+
# env: TEST=--disable-tests BENCH=--disable-benchmarks
4848
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.4.1], sources: [hvr-ghc]}}
4949

50-
allow_failures:
51-
- compiler: "ghc-8.4.1"
52-
5350
before_install:
5451
- HC=${CC}
5552
- HCPKG=${HC/ghc/ghc-pkg}
@@ -71,24 +68,9 @@ install:
7168
- travis_retry cabal update -v
7269
- "sed -i.bak 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config"
7370
- rm -fv cabal.project cabal.project.local
74-
# Overlay Hackage Package Index for GHC HEAD: https://github.com/hvr/head.hackage
75-
- |
76-
if $GHCHEAD; then
77-
sed -i.bak 's/-- allow-newer:.*/allow-newer: *:base, *:template-haskell, *:ghc, *:Cabal/' ${HOME}/.cabal/config
78-
79-
echo 'repository head.hackage' >> ${HOME}/.cabal/config
80-
echo ' url: http://head.hackage.haskell.org/' >> ${HOME}/.cabal/config
81-
echo ' secure: True' >> ${HOME}/.cabal/config
82-
echo ' root-keys: 07c59cb65787dedfaef5bd5f987ceb5f7e5ebf88b904bbd4c5cbdeb2ff71b740' >> ${HOME}/.cabal/config
83-
echo ' 2e8555dde16ebd8df076f1a8ef13b8f14c66bad8eafefd7d9e37d0ed711821fb' >> ${HOME}/.cabal/config
84-
echo ' 8f79fd2389ab2967354407ec852cbe73f2e8635793ac446d09461ffb99527f6e' >> ${HOME}/.cabal/config
85-
echo ' key-threshold: 3' >> ${HOME}/.cabal.config
86-
87-
cabal new-update head.hackage -v
88-
fi
8971
- grep -Ev -- '^\s*--' ${HOME}/.cabal/config | grep -Ev '^\s*$'
90-
- if [ $HCNUMVER -ge 80000 ]; then cabal new-install -w ${HC} --symlink-bindir=$HOME/.local/bin doctest --constraint='doctest ==0.13.*'; fi
91-
- if [ $HCNUMVER -eq 80202 ]; then cabal new-install -w ${HC} --symlink-bindir=$HOME/.local/bin hlint --constraint='hlint ==2.0.*'; fi
72+
- if [ $HCNUMVER -ge 80000 ]; then cabal new-install -w ${HC} --symlink-bindir=$HOME/.local/bin doctest --constraint='doctest ==0.14.*'; fi
73+
- if [ $HCNUMVER -eq 80202 ]; then cabal new-install -w ${HC} --symlink-bindir=$HOME/.local/bin hlint --constraint='hlint ==2.1.*'; fi
9274
- "printf 'packages: \".\"\\n' > cabal.project"
9375
- cat cabal.project
9476
- if [ -f "./configure.ac" ]; then

0 commit comments

Comments
 (0)