Add stub GHC-8.8 job: build core packages

This commit is contained in:
Oleg Grenrus 2019-05-28 18:00:41 +03:00
parent 6d8a7d6b90
commit e5adb20a8b
7 changed files with 33 additions and 10 deletions

View file

@ -30,6 +30,9 @@ before_cache:
- rm -rfv $CABALHOME/packages/head.hackage - rm -rfv $CABALHOME/packages/head.hackage
matrix: matrix:
include: include:
- compiler: ghc-8.8.1
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.8.1","cabal-install-3.0"]}}
env: GHCHEAD=true
- compiler: ghc-8.6.5 - compiler: ghc-8.6.5
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.5","cabal-install-2.4"]}} addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.5","cabal-install-2.4"]}}
- compiler: ghc-8.4.4 - compiler: ghc-8.4.4
@ -38,6 +41,8 @@ matrix:
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.2.2","cabal-install-2.4"]}} addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.2.2","cabal-install-2.4"]}}
- compiler: ghc-8.0.2 - compiler: ghc-8.0.2
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.0.2","cabal-install-2.4"]}} addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.0.2","cabal-install-2.4"]}}
allow_failures:
- compiler: ghc-8.8.1
before_install: before_install:
- HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//') - HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//')
- HCPKG="$HC-pkg" - HCPKG="$HC-pkg"
@ -90,6 +95,18 @@ install:
echo " prefix: $CABALHOME" >> $CABALHOME/config echo " prefix: $CABALHOME" >> $CABALHOME/config
echo "repository hackage.haskell.org" >> $CABALHOME/config echo "repository hackage.haskell.org" >> $CABALHOME/config
echo " url: http://hackage.haskell.org/" >> $CABALHOME/config echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
- |
if $GHCHEAD; then
echo "allow-newer: $($HCPKG list --simple-output | sed -E 's/([a-zA-Z-]+)-[0-9.]+/*:\1/g')" >> $CABALHOME/config
echo "repository head.hackage" >> $CABALHOME/config
echo " url: http://head.hackage.haskell.org/" >> $CABALHOME/config
echo " secure: True" >> $CABALHOME/config
echo " root-keys: 07c59cb65787dedfaef5bd5f987ceb5f7e5ebf88b904bbd4c5cbdeb2ff71b740" >> $CABALHOME/config
echo " 2e8555dde16ebd8df076f1a8ef13b8f14c66bad8eafefd7d9e37d0ed711821fb" >> $CABALHOME/config
echo " 8f79fd2389ab2967354407ec852cbe73f2e8635793ac446d09461ffb99527f6e" >> $CABALHOME/config
echo " key-threshold: 3" >> $CABALHOME/config
fi
- | - |
echo "program-default-options" >> $CABALHOME/config echo "program-default-options" >> $CABALHOME/config
echo " ghc-options: -j2" >> $CABALHOME/config echo " ghc-options: -j2" >> $CABALHOME/config
@ -103,14 +120,14 @@ install:
echo 'packages: "servant"' >> cabal.project echo 'packages: "servant"' >> cabal.project
echo 'packages: "servant-client"' >> cabal.project echo 'packages: "servant-client"' >> cabal.project
echo 'packages: "servant-client-core"' >> cabal.project echo 'packages: "servant-client-core"' >> cabal.project
echo 'packages: "servant-http-streams"' >> cabal.project if [ $HCNUMVER -eq 80002 ] || [ $HCNUMVER -eq 80202 ] || [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "servant-http-streams"' >> cabal.project ; fi
echo 'packages: "servant-docs"' >> cabal.project echo 'packages: "servant-docs"' >> cabal.project
echo 'packages: "servant-foreign"' >> cabal.project echo 'packages: "servant-foreign"' >> cabal.project
echo 'packages: "servant-server"' >> cabal.project echo 'packages: "servant-server"' >> cabal.project
echo 'packages: "doc/tutorial"' >> cabal.project if [ $HCNUMVER -eq 80002 ] || [ $HCNUMVER -eq 80202 ] || [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "doc/tutorial"' >> cabal.project ; fi
echo 'packages: "servant-machines"' >> cabal.project if [ $HCNUMVER -eq 80002 ] || [ $HCNUMVER -eq 80202 ] || [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "servant-machines"' >> cabal.project ; fi
echo 'packages: "servant-conduit"' >> cabal.project if [ $HCNUMVER -eq 80002 ] || [ $HCNUMVER -eq 80202 ] || [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "servant-conduit"' >> cabal.project ; fi
echo 'packages: "servant-pipes"' >> cabal.project if [ $HCNUMVER -eq 80002 ] || [ $HCNUMVER -eq 80202 ] || [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "servant-pipes"' >> cabal.project ; fi
if [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "doc/cookbook/basic-auth"' >> cabal.project ; fi if [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "doc/cookbook/basic-auth"' >> cabal.project ; fi
if [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "doc/cookbook/curl-mock"' >> cabal.project ; fi if [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "doc/cookbook/curl-mock"' >> cabal.project ; fi
if [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "doc/cookbook/basic-streaming"' >> cabal.project ; fi if [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "doc/cookbook/basic-streaming"' >> cabal.project ; fi
@ -188,14 +205,14 @@ script:
echo 'packages: "servant-*/*.cabal"' >> cabal.project echo 'packages: "servant-*/*.cabal"' >> cabal.project
echo 'packages: "servant-client-*/*.cabal"' >> cabal.project echo 'packages: "servant-client-*/*.cabal"' >> cabal.project
echo 'packages: "servant-client-core-*/*.cabal"' >> cabal.project echo 'packages: "servant-client-core-*/*.cabal"' >> cabal.project
echo 'packages: "servant-http-streams-*/*.cabal"' >> cabal.project if [ $HCNUMVER -eq 80002 ] || [ $HCNUMVER -eq 80202 ] || [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "servant-http-streams-*/*.cabal"' >> cabal.project ; fi
echo 'packages: "servant-docs-*/*.cabal"' >> cabal.project echo 'packages: "servant-docs-*/*.cabal"' >> cabal.project
echo 'packages: "servant-foreign-*/*.cabal"' >> cabal.project echo 'packages: "servant-foreign-*/*.cabal"' >> cabal.project
echo 'packages: "servant-server-*/*.cabal"' >> cabal.project echo 'packages: "servant-server-*/*.cabal"' >> cabal.project
echo 'packages: "tutorial-*/*.cabal"' >> cabal.project if [ $HCNUMVER -eq 80002 ] || [ $HCNUMVER -eq 80202 ] || [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "tutorial-*/*.cabal"' >> cabal.project ; fi
echo 'packages: "servant-machines-*/*.cabal"' >> cabal.project if [ $HCNUMVER -eq 80002 ] || [ $HCNUMVER -eq 80202 ] || [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "servant-machines-*/*.cabal"' >> cabal.project ; fi
echo 'packages: "servant-conduit-*/*.cabal"' >> cabal.project if [ $HCNUMVER -eq 80002 ] || [ $HCNUMVER -eq 80202 ] || [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "servant-conduit-*/*.cabal"' >> cabal.project ; fi
echo 'packages: "servant-pipes-*/*.cabal"' >> cabal.project if [ $HCNUMVER -eq 80002 ] || [ $HCNUMVER -eq 80202 ] || [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "servant-pipes-*/*.cabal"' >> cabal.project ; fi
if [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "cookbook-basic-auth-*/*.cabal"' >> cabal.project ; fi if [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "cookbook-basic-auth-*/*.cabal"' >> cabal.project ; fi
if [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "cookbook-curl-mock-*/*.cabal"' >> cabal.project ; fi if [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "cookbook-curl-mock-*/*.cabal"' >> cabal.project ; fi
if [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "cookbook-basic-streaming-*/*.cabal"' >> cabal.project ; fi if [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "cookbook-basic-streaming-*/*.cabal"' >> cabal.project ; fi

View file

@ -22,6 +22,7 @@ tested-with:
|| ==8.2.2 || ==8.2.2
|| ==8.4.4 || ==8.4.4
|| ==8.6.5 || ==8.6.5
|| ==8.8.1
extra-source-files: extra-source-files:
CHANGELOG.md CHANGELOG.md

View file

@ -26,6 +26,7 @@ tested-with:
|| ==8.2.2 || ==8.2.2
|| ==8.4.4 || ==8.4.4
|| ==8.6.5 || ==8.6.5
|| ==8.8.1
extra-source-files: extra-source-files:
CHANGELOG.md CHANGELOG.md

View file

@ -25,6 +25,7 @@ tested-with:
|| ==8.2.2 || ==8.2.2
|| ==8.4.4 || ==8.4.4
|| ==8.6.5 || ==8.6.5
|| ==8.8.1
extra-source-files: extra-source-files:
CHANGELOG.md CHANGELOG.md

View file

@ -27,6 +27,7 @@ tested-with:
|| ==8.2.2 || ==8.2.2
|| ==8.4.4 || ==8.4.4
|| ==8.6.5 || ==8.6.5
|| ==8.8.1
extra-source-files: extra-source-files:
CHANGELOG.md CHANGELOG.md

View file

@ -28,6 +28,7 @@ tested-with:
|| ==8.2.2 || ==8.2.2
|| ==8.4.4 || ==8.4.4
|| ==8.6.5 || ==8.6.5
|| ==8.8.1
extra-source-files: extra-source-files:
CHANGELOG.md CHANGELOG.md

View file

@ -25,6 +25,7 @@ tested-with:
|| ==8.2.2 || ==8.2.2
|| ==8.4.4 || ==8.4.4
|| ==8.6.5 || ==8.6.5
|| ==8.8.1
extra-source-files: extra-source-files:
CHANGELOG.md CHANGELOG.md