Skip to content

Commit 41dc023

Browse files
committed
.travis.yml: Also test with GHC 8.4.
1 parent fa18e15 commit 41dc023

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ matrix:
4343
- compiler: "ghc-8.2.2"
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]}}
46+
- compiler: "ghc-8.4.1"
47+
env: GHCHEAD=true
48+
addons: {apt: {packages: [ghc-ppa-tools,cabal-install-head,ghc-8.4.1], sources: [hvr-ghc]}}
49+
50+
allow_failures:
51+
- compiler: "ghc-8.4.1"
4652

4753
before_install:
4854
- HC=${CC}
@@ -65,6 +71,21 @@ install:
6571
- travis_retry cabal update -v
6672
- "sed -i.bak 's/^jobs:/-- jobs:/' ${HOME}/.cabal/config"
6773
- 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
6889
- grep -Ev -- '^\s*--' ${HOME}/.cabal/config | grep -Ev '^\s*$'
6990
- "printf 'packages: \".\"\\n' > cabal.project"
7091
- cat cabal.project

ekg-core.cabal

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ category: System
1414
build-type: Simple
1515
extra-source-files: CHANGES.md
1616
cabal-version: >=1.10
17-
tested-with: GHC==8.2.2, GHC==8.0.2, GHC == 7.10.3, GHC == 7.8.4, GHC == 7.6.3
17+
tested-with: GHC == 8.4.1, GHC == 8.2.2, GHC == 8.0.2, GHC == 7.10.3
18+
, GHC == 7.8.4, GHC == 7.6.3
1819

1920
library
2021
exposed-modules:

0 commit comments

Comments
 (0)