Skip to content

Commit 2f06754

Browse files
committed
Add GHC-8.8 job
1 parent 02c9f72 commit 2f06754

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ before_cache:
2929
- rm -rfv $CABALHOME/packages/head.hackage
3030
matrix:
3131
include:
32+
- compiler: ghc-8.8.1
33+
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.8.1","cabal-install-3.0"]}}
34+
env: GHCHEAD=true
3235
- compiler: ghc-8.6.5
3336
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.5","cabal-install-2.4"]}}
3437
- compiler: ghc-8.4.3
@@ -41,6 +44,8 @@ matrix:
4144
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.10.3","cabal-install-2.4"]}}
4245
- compiler: ghc-7.8.4
4346
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-7.8.4","cabal-install-2.4"]}}
47+
allow_failures:
48+
- compiler: ghc-8.8.1
4449
before_install:
4550
- HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//')
4651
- HCPKG="$HC-pkg"
@@ -93,6 +98,18 @@ install:
9398
echo " prefix: $CABALHOME" >> $CABALHOME/config
9499
echo "repository hackage.haskell.org" >> $CABALHOME/config
95100
echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
101+
- |
102+
if $GHCHEAD; then
103+
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1/g')" >> $CABALHOME/config
104+
105+
echo "repository head.hackage" >> $CABALHOME/config
106+
echo " url: http://head.hackage.haskell.org/" >> $CABALHOME/config
107+
echo " secure: True" >> $CABALHOME/config
108+
echo " root-keys: 07c59cb65787dedfaef5bd5f987ceb5f7e5ebf88b904bbd4c5cbdeb2ff71b740" >> $CABALHOME/config
109+
echo " 2e8555dde16ebd8df076f1a8ef13b8f14c66bad8eafefd7d9e37d0ed711821fb" >> $CABALHOME/config
110+
echo " 8f79fd2389ab2967354407ec852cbe73f2e8635793ac446d09461ffb99527f6e" >> $CABALHOME/config
111+
echo " key-threshold: 3" >> $CABALHOME/config
112+
fi
96113
- cat $CABALHOME/config
97114
- rm -fv cabal.project cabal.project.local cabal.project.freeze
98115
- travis_retry ${CABAL} v2-update -v

github.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ copyright:
3030
Copyright 2012-2013 Mike Burns, Copyright 2013-2015 John Wiegley, Copyright 2016-2019 Oleg Grenrus
3131

3232
tested-with:
33-
GHC ==7.8.4 || ==7.10.3 || ==8.0.2 || ==8.2.2 || ==8.4.3 || ==8.6.5
33+
GHC ==7.8.4 || ==7.10.3 || ==8.0.2 || ==8.2.2 || ==8.4.3 || ==8.6.5 || ==8.8.1
3434

3535
extra-source-files:
3636
README.md

0 commit comments

Comments
 (0)