|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
#
|
|
|
|
|
# For more information, see https://github.com/haskell-CI/haskell-ci
|
|
|
|
|
#
|
|
|
|
|
# version: 0.3.20190521
|
|
|
|
|
# version: 0.3.20190730
|
|
|
|
|
#
|
|
|
|
|
language: c
|
|
|
|
|
dist: xenial
|
|
|
|
@ -32,7 +32,7 @@ matrix:
|
|
|
|
|
include:
|
|
|
|
|
- compiler: ghc-8.8.1
|
|
|
|
|
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.8.1","cabal-install-3.0"]}}
|
|
|
|
|
env: GHCHEAD=true
|
|
|
|
|
env: HEADHACKAGE=true
|
|
|
|
|
- compiler: ghc-8.6.5
|
|
|
|
|
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.5","cabal-install-2.4"]}}
|
|
|
|
|
- compiler: ghc-8.4.4
|
|
|
|
@ -78,11 +78,12 @@ install:
|
|
|
|
|
- echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
|
|
|
|
|
- TEST=--enable-tests
|
|
|
|
|
- BENCH=--enable-benchmarks
|
|
|
|
|
- GHCHEAD=${GHCHEAD-false}
|
|
|
|
|
- HEADHACKAGE=${HEADHACKAGE-false}
|
|
|
|
|
- rm -f $CABALHOME/config
|
|
|
|
|
- |
|
|
|
|
|
echo "verbose: normal +nowrap +markoutput" >> $CABALHOME/config
|
|
|
|
|
echo "remote-build-reporting: anonymous" >> $CABALHOME/config
|
|
|
|
|
echo "write-ghc-environment-files: always" >> $CABALHOME/config
|
|
|
|
|
echo "remote-repo-cache: $CABALHOME/packages" >> $CABALHOME/config
|
|
|
|
|
echo "logs-dir: $CABALHOME/logs" >> $CABALHOME/config
|
|
|
|
|
echo "world-file: $CABALHOME/world" >> $CABALHOME/config
|
|
|
|
@ -96,15 +97,14 @@ install:
|
|
|
|
|
echo "repository hackage.haskell.org" >> $CABALHOME/config
|
|
|
|
|
echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
|
|
|
|
|
- |
|
|
|
|
|
if $GHCHEAD; then
|
|
|
|
|
if $HEADHACKAGE; 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 "repository head.hackage.ghc.haskell.org" >> $CABALHOME/config
|
|
|
|
|
echo " url: https://ghc.gitlab.haskell.org/head.hackage/" >> $CABALHOME/config
|
|
|
|
|
echo " secure: True" >> $CABALHOME/config
|
|
|
|
|
echo " root-keys: 07c59cb65787dedfaef5bd5f987ceb5f7e5ebf88b904bbd4c5cbdeb2ff71b740" >> $CABALHOME/config
|
|
|
|
|
echo " 2e8555dde16ebd8df076f1a8ef13b8f14c66bad8eafefd7d9e37d0ed711821fb" >> $CABALHOME/config
|
|
|
|
|
echo " 8f79fd2389ab2967354407ec852cbe73f2e8635793ac446d09461ffb99527f6e" >> $CABALHOME/config
|
|
|
|
|
echo " root-keys: 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d" >> $CABALHOME/config
|
|
|
|
|
echo " 26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329" >> $CABALHOME/config
|
|
|
|
|
echo " f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89" >> $CABALHOME/config
|
|
|
|
|
echo " key-threshold: 3" >> $CABALHOME/config
|
|
|
|
|
fi
|
|
|
|
|
- |
|
|
|
|
@ -142,21 +142,21 @@ install:
|
|
|
|
|
if [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "doc/cookbook/using-custom-monad"' >> cabal.project ; fi
|
|
|
|
|
if [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "doc/cookbook/using-free-client"' >> cabal.project ; fi
|
|
|
|
|
- |
|
|
|
|
|
echo "constraints: foundation >=0.0.14" >> cabal.project
|
|
|
|
|
echo "constraints: memory <0.14.12 || >0.14.12" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:servant" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:servant-client" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:servant-server" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:hspec" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:http-client" >> cabal.project
|
|
|
|
|
echo "allow-newer: vault-0.3.1.2:hashable" >> cabal.project
|
|
|
|
|
echo "allow-newer: psqueues-0.2.7.1:hashable" >> cabal.project
|
|
|
|
|
echo "allow-newer: sqlite-simple-0.4.16.0:semigroups" >> cabal.project
|
|
|
|
|
echo "allow-newer: direct-sqlite-2.3.24:semigroups" >> cabal.project
|
|
|
|
|
echo "allow-newer: io-streams-1.5.1.0:network" >> cabal.project
|
|
|
|
|
echo "allow-newer: openssl-streams-1.2.2.0:network" >> cabal.project
|
|
|
|
|
echo "optimization: False" >> cabal.project
|
|
|
|
|
echo "write-ghc-environment-files: always" >> cabal.project
|
|
|
|
|
echo "constraints: foundation >=0.0.14" >> cabal.project
|
|
|
|
|
echo "constraints: memory <0.14.12 || >0.14.12" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:servant" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:servant-client" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:servant-server" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:hspec" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:http-client" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:warp" >> cabal.project
|
|
|
|
|
echo "allow-newer: vault-0.3.1.2:hashable" >> cabal.project
|
|
|
|
|
echo "allow-newer: psqueues-0.2.7.1:hashable" >> cabal.project
|
|
|
|
|
echo "allow-newer: sqlite-simple-0.4.16.0:semigroups" >> cabal.project
|
|
|
|
|
echo "allow-newer: direct-sqlite-2.3.24:semigroups" >> cabal.project
|
|
|
|
|
echo "allow-newer: io-streams-1.5.1.0:network" >> cabal.project
|
|
|
|
|
echo "allow-newer: openssl-streams-1.2.2.0:network" >> cabal.project
|
|
|
|
|
echo "optimization: False" >> cabal.project
|
|
|
|
|
- "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(cookbook-basic-auth|cookbook-basic-streaming|cookbook-curl-mock|cookbook-db-postgres-pool|cookbook-db-sqlite-simple|cookbook-file-upload|cookbook-generic|cookbook-https|cookbook-pagination|cookbook-structuring-apis|cookbook-testing|cookbook-using-custom-monad|cookbook-using-free-client|servant|servant-client|servant-client-core|servant-conduit|servant-docs|servant-foreign|servant-http-streams|servant-machines|servant-pipes|servant-server|tutorial)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
|
|
|
|
|
- cat cabal.project || true
|
|
|
|
|
- cat cabal.project.local || true
|
|
|
|
@ -227,21 +227,21 @@ script:
|
|
|
|
|
if [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "cookbook-using-custom-monad-*/*.cabal"' >> cabal.project ; fi
|
|
|
|
|
if [ $HCNUMVER -eq 80404 ] || [ $HCNUMVER -eq 80605 ] ; then echo 'packages: "cookbook-using-free-client-*/*.cabal"' >> cabal.project ; fi
|
|
|
|
|
- |
|
|
|
|
|
echo "constraints: foundation >=0.0.14" >> cabal.project
|
|
|
|
|
echo "constraints: memory <0.14.12 || >0.14.12" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:servant" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:servant-client" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:servant-server" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:hspec" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:http-client" >> cabal.project
|
|
|
|
|
echo "allow-newer: vault-0.3.1.2:hashable" >> cabal.project
|
|
|
|
|
echo "allow-newer: psqueues-0.2.7.1:hashable" >> cabal.project
|
|
|
|
|
echo "allow-newer: sqlite-simple-0.4.16.0:semigroups" >> cabal.project
|
|
|
|
|
echo "allow-newer: direct-sqlite-2.3.24:semigroups" >> cabal.project
|
|
|
|
|
echo "allow-newer: io-streams-1.5.1.0:network" >> cabal.project
|
|
|
|
|
echo "allow-newer: openssl-streams-1.2.2.0:network" >> cabal.project
|
|
|
|
|
echo "optimization: False" >> cabal.project
|
|
|
|
|
echo "write-ghc-environment-files: always" >> cabal.project
|
|
|
|
|
echo "constraints: foundation >=0.0.14" >> cabal.project
|
|
|
|
|
echo "constraints: memory <0.14.12 || >0.14.12" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:servant" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:servant-client" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:servant-server" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:hspec" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:http-client" >> cabal.project
|
|
|
|
|
echo "allow-newer: servant-quickcheck:warp" >> cabal.project
|
|
|
|
|
echo "allow-newer: vault-0.3.1.2:hashable" >> cabal.project
|
|
|
|
|
echo "allow-newer: psqueues-0.2.7.1:hashable" >> cabal.project
|
|
|
|
|
echo "allow-newer: sqlite-simple-0.4.16.0:semigroups" >> cabal.project
|
|
|
|
|
echo "allow-newer: direct-sqlite-2.3.24:semigroups" >> cabal.project
|
|
|
|
|
echo "allow-newer: io-streams-1.5.1.0:network" >> cabal.project
|
|
|
|
|
echo "allow-newer: openssl-streams-1.2.2.0:network" >> cabal.project
|
|
|
|
|
echo "optimization: False" >> cabal.project
|
|
|
|
|
- "for pkg in $($HCPKG list --simple-output); do echo $pkg | sed 's/-[^-]*$//' | (grep -vE -- '^(cookbook-basic-auth|cookbook-basic-streaming|cookbook-curl-mock|cookbook-db-postgres-pool|cookbook-db-sqlite-simple|cookbook-file-upload|cookbook-generic|cookbook-https|cookbook-pagination|cookbook-structuring-apis|cookbook-testing|cookbook-using-custom-monad|cookbook-using-free-client|servant|servant-client|servant-client-core|servant-conduit|servant-docs|servant-foreign|servant-http-streams|servant-machines|servant-pipes|servant-server|tutorial)$' || true) | sed 's/^/constraints: /' | sed 's/$/ installed/' >> cabal.project.local; done"
|
|
|
|
|
- cat cabal.project || true
|
|
|
|
|
- cat cabal.project.local || true
|
|
|
|
|