292 lines
21 KiB
YAML
292 lines
21 KiB
YAML
# This Travis job script has been generated by a script via
|
|
#
|
|
# haskell-ci '--config=cabal.haskell-ci' '--output=.travis.yml' 'cabal.project'
|
|
#
|
|
# For more information, see https://github.com/haskell-CI/haskell-ci
|
|
#
|
|
# version: 0.5.20190908
|
|
#
|
|
language: c
|
|
dist: xenial
|
|
git:
|
|
# whether to recursively clone submodules
|
|
submodules: false
|
|
branches:
|
|
only:
|
|
- master
|
|
- release-0.16
|
|
cache:
|
|
directories:
|
|
- $HOME/.cabal/packages
|
|
- $HOME/.cabal/store
|
|
before_cache:
|
|
- rm -fv $CABALHOME/packages/hackage.haskell.org/build-reports.log
|
|
# remove files that are regenerated by 'cabal update'
|
|
- rm -fv $CABALHOME/packages/hackage.haskell.org/00-index.*
|
|
- rm -fv $CABALHOME/packages/hackage.haskell.org/*.json
|
|
- rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.cache
|
|
- rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar
|
|
- rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar.idx
|
|
- rm -rfv $CABALHOME/packages/head.hackage
|
|
matrix:
|
|
include:
|
|
- compiler: ghc-8.8.1
|
|
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.8.1","cabal-install-3.0"]}}
|
|
- compiler: ghc-8.6.5
|
|
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.5","cabal-install-3.0"]}}
|
|
- compiler: ghc-8.4.4
|
|
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.4.4","cabal-install-3.0"]}}
|
|
- compiler: ghc-8.2.2
|
|
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.2.2","cabal-install-3.0"]}}
|
|
- compiler: ghc-8.0.2
|
|
addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.0.2","cabal-install-3.0"]}}
|
|
before_install:
|
|
- HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//')
|
|
- WITHCOMPILER="-w $HC"
|
|
- HADDOCK=$(echo "/opt/$CC/bin/haddock" | sed 's/-/\//')
|
|
- HCPKG="$HC-pkg"
|
|
- unset CC
|
|
- CABAL=/opt/ghc/bin/cabal
|
|
- CABALHOME=$HOME/.cabal
|
|
- export PATH="$CABALHOME/bin:$PATH"
|
|
- TOP=$(pwd)
|
|
- "HCNUMVER=$(${HC} --numeric-version|perl -ne '/^(\\d+)\\.(\\d+)\\.(\\d+)(\\.(\\d+))?$/; print(10000 * $1 + 100 * $2 + ($3 == 0 ? $5 != 1 : $3))')"
|
|
- echo $HCNUMVER
|
|
- CABAL="$CABAL -vnormal+nowrap+markoutput"
|
|
- set -o pipefail
|
|
- |
|
|
echo 'function blue(s) { printf "\033[0;34m" s "\033[0m " }' >> .colorful.awk
|
|
echo 'BEGIN { state = "output"; }' >> .colorful.awk
|
|
echo '/^-----BEGIN CABAL OUTPUT-----$/ { state = "cabal" }' >> .colorful.awk
|
|
echo '/^-----END CABAL OUTPUT-----$/ { state = "output" }' >> .colorful.awk
|
|
echo '!/^(-----BEGIN CABAL OUTPUT-----|-----END CABAL OUTPUT-----)/ {' >> .colorful.awk
|
|
echo ' if (state == "cabal") {' >> .colorful.awk
|
|
echo ' print blue($0)' >> .colorful.awk
|
|
echo ' } else {' >> .colorful.awk
|
|
echo ' print $0' >> .colorful.awk
|
|
echo ' }' >> .colorful.awk
|
|
echo '}' >> .colorful.awk
|
|
- cat .colorful.awk
|
|
- |
|
|
color_cabal_output () {
|
|
awk -f $TOP/.colorful.awk
|
|
}
|
|
- echo text | color_cabal_output
|
|
install:
|
|
- ${CABAL} --version
|
|
- echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
|
|
- TEST=--enable-tests
|
|
- BENCH=--enable-benchmarks
|
|
- 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
|
|
echo "extra-prog-path: $CABALHOME/bin" >> $CABALHOME/config
|
|
echo "symlink-bindir: $CABALHOME/bin" >> $CABALHOME/config
|
|
echo "installdir: $CABALHOME/bin" >> $CABALHOME/config
|
|
echo "build-summary: $CABALHOME/logs/build.log" >> $CABALHOME/config
|
|
echo "store-dir: $CABALHOME/store" >> $CABALHOME/config
|
|
echo "install-dirs user" >> $CABALHOME/config
|
|
echo " prefix: $CABALHOME" >> $CABALHOME/config
|
|
echo "repository hackage.haskell.org" >> $CABALHOME/config
|
|
echo " url: http://hackage.haskell.org/" >> $CABALHOME/config
|
|
- GHCJOBS=-j2
|
|
- |
|
|
echo "program-default-options" >> $CABALHOME/config
|
|
echo " ghc-options: $GHCJOBS +RTS -M6G -RTS" >> $CABALHOME/config
|
|
- cat $CABALHOME/config
|
|
- rm -fv cabal.project cabal.project.local cabal.project.freeze
|
|
- travis_retry ${CABAL} v2-update -v
|
|
# Generate cabal.project
|
|
- rm -rf cabal.project cabal.project.local cabal.project.freeze
|
|
- touch cabal.project
|
|
- |
|
|
echo "packages: servant" >> cabal.project
|
|
echo "packages: servant-client" >> cabal.project
|
|
echo "packages: servant-client-core" >> cabal.project
|
|
echo "packages: servant-http-streams" >> cabal.project
|
|
echo "packages: servant-docs" >> cabal.project
|
|
echo "packages: servant-foreign" >> cabal.project
|
|
echo "packages: servant-server" >> cabal.project
|
|
echo "packages: doc/tutorial" >> cabal.project
|
|
echo "packages: servant-machines" >> cabal.project
|
|
echo "packages: servant-conduit" >> cabal.project
|
|
echo "packages: servant-pipes" >> cabal.project
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: doc/cookbook/basic-auth" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: doc/cookbook/curl-mock" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: doc/cookbook/basic-streaming" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: doc/cookbook/db-postgres-pool" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: doc/cookbook/file-upload" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: doc/cookbook/generic" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: doc/cookbook/testing" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: doc/cookbook/structuring-apis" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: doc/cookbook/using-custom-monad" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; 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 "constraints: sqlite-simple < 0" >> cabal.project
|
|
echo "allow-newer: servant-multipart-0.11.4:http-media" >> cabal.project
|
|
echo "allow-newer: servant-multipart-0.11.4:lens" >> cabal.project
|
|
echo "allow-newer: servant-js-0.9.4:base" >> cabal.project
|
|
echo "allow-newer: servant-js-0.9.4:base-compat" >> cabal.project
|
|
echo "allow-newer: servant-js-0.9.4:lens" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:base" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:base-compat-batteries" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:hspec" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:http-client" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:http-media" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:QuickCheck" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:servant" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:servant-client" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:servant-server" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:time" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:warp" >> cabal.project
|
|
echo "allow-newer: aeson-pretty-0.8.7:base-compat" >> 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: io-streams-1.5.1.0:primitive" >> 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-file-upload|cookbook-generic|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
|
|
- if [ -f "servant/configure.ac" ]; then (cd "servant" && autoreconf -i); fi
|
|
- if [ -f "servant-client/configure.ac" ]; then (cd "servant-client" && autoreconf -i); fi
|
|
- if [ -f "servant-client-core/configure.ac" ]; then (cd "servant-client-core" && autoreconf -i); fi
|
|
- if [ -f "servant-http-streams/configure.ac" ]; then (cd "servant-http-streams" && autoreconf -i); fi
|
|
- if [ -f "servant-docs/configure.ac" ]; then (cd "servant-docs" && autoreconf -i); fi
|
|
- if [ -f "servant-foreign/configure.ac" ]; then (cd "servant-foreign" && autoreconf -i); fi
|
|
- if [ -f "servant-server/configure.ac" ]; then (cd "servant-server" && autoreconf -i); fi
|
|
- if [ -f "doc/tutorial/configure.ac" ]; then (cd "doc/tutorial" && autoreconf -i); fi
|
|
- if [ -f "servant-machines/configure.ac" ]; then (cd "servant-machines" && autoreconf -i); fi
|
|
- if [ -f "servant-conduit/configure.ac" ]; then (cd "servant-conduit" && autoreconf -i); fi
|
|
- if [ -f "servant-pipes/configure.ac" ]; then (cd "servant-pipes" && autoreconf -i); fi
|
|
- if [ -f "doc/cookbook/basic-auth/configure.ac" ]; then (cd "doc/cookbook/basic-auth" && autoreconf -i); fi
|
|
- if [ -f "doc/cookbook/curl-mock/configure.ac" ]; then (cd "doc/cookbook/curl-mock" && autoreconf -i); fi
|
|
- if [ -f "doc/cookbook/basic-streaming/configure.ac" ]; then (cd "doc/cookbook/basic-streaming" && autoreconf -i); fi
|
|
- if [ -f "doc/cookbook/db-postgres-pool/configure.ac" ]; then (cd "doc/cookbook/db-postgres-pool" && autoreconf -i); fi
|
|
- if [ -f "doc/cookbook/file-upload/configure.ac" ]; then (cd "doc/cookbook/file-upload" && autoreconf -i); fi
|
|
- if [ -f "doc/cookbook/generic/configure.ac" ]; then (cd "doc/cookbook/generic" && autoreconf -i); fi
|
|
- if [ -f "doc/cookbook/testing/configure.ac" ]; then (cd "doc/cookbook/testing" && autoreconf -i); fi
|
|
- if [ -f "doc/cookbook/structuring-apis/configure.ac" ]; then (cd "doc/cookbook/structuring-apis" && autoreconf -i); fi
|
|
- if [ -f "doc/cookbook/using-custom-monad/configure.ac" ]; then (cd "doc/cookbook/using-custom-monad" && autoreconf -i); fi
|
|
- if [ -f "doc/cookbook/using-free-client/configure.ac" ]; then (cd "doc/cookbook/using-free-client" && autoreconf -i); fi
|
|
- ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
|
|
- "cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
|
|
- rm cabal.project.freeze
|
|
script:
|
|
- DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
|
|
# Packaging...
|
|
- ${CABAL} v2-sdist all | color_cabal_output
|
|
# Unpacking...
|
|
- mv dist-newstyle/sdist/*.tar.gz ${DISTDIR}/
|
|
- cd ${DISTDIR} || false
|
|
- find . -maxdepth 1 -type f -name '*.tar.gz' -exec tar -xvf '{}' \;
|
|
- find . -maxdepth 1 -type f -name '*.tar.gz' -exec rm '{}' \;
|
|
- PKGDIR_servant="$(find . -maxdepth 1 -type d -regex '.*/servant-[0-9.]*')"
|
|
- PKGDIR_servant_client="$(find . -maxdepth 1 -type d -regex '.*/servant-client-[0-9.]*')"
|
|
- PKGDIR_servant_client_core="$(find . -maxdepth 1 -type d -regex '.*/servant-client-core-[0-9.]*')"
|
|
- PKGDIR_servant_http_streams="$(find . -maxdepth 1 -type d -regex '.*/servant-http-streams-[0-9.]*')"
|
|
- PKGDIR_servant_docs="$(find . -maxdepth 1 -type d -regex '.*/servant-docs-[0-9.]*')"
|
|
- PKGDIR_servant_foreign="$(find . -maxdepth 1 -type d -regex '.*/servant-foreign-[0-9.]*')"
|
|
- PKGDIR_servant_server="$(find . -maxdepth 1 -type d -regex '.*/servant-server-[0-9.]*')"
|
|
- PKGDIR_tutorial="$(find . -maxdepth 1 -type d -regex '.*/tutorial-[0-9.]*')"
|
|
- PKGDIR_servant_machines="$(find . -maxdepth 1 -type d -regex '.*/servant-machines-[0-9.]*')"
|
|
- PKGDIR_servant_conduit="$(find . -maxdepth 1 -type d -regex '.*/servant-conduit-[0-9.]*')"
|
|
- PKGDIR_servant_pipes="$(find . -maxdepth 1 -type d -regex '.*/servant-pipes-[0-9.]*')"
|
|
- PKGDIR_cookbook_basic_auth="$(find . -maxdepth 1 -type d -regex '.*/cookbook-basic-auth-[0-9.]*')"
|
|
- PKGDIR_cookbook_curl_mock="$(find . -maxdepth 1 -type d -regex '.*/cookbook-curl-mock-[0-9.]*')"
|
|
- PKGDIR_cookbook_basic_streaming="$(find . -maxdepth 1 -type d -regex '.*/cookbook-basic-streaming-[0-9.]*')"
|
|
- PKGDIR_cookbook_db_postgres_pool="$(find . -maxdepth 1 -type d -regex '.*/cookbook-db-postgres-pool-[0-9.]*')"
|
|
- PKGDIR_cookbook_file_upload="$(find . -maxdepth 1 -type d -regex '.*/cookbook-file-upload-[0-9.]*')"
|
|
- PKGDIR_cookbook_generic="$(find . -maxdepth 1 -type d -regex '.*/cookbook-generic-[0-9.]*')"
|
|
- PKGDIR_cookbook_testing="$(find . -maxdepth 1 -type d -regex '.*/cookbook-testing-[0-9.]*')"
|
|
- PKGDIR_cookbook_structuring_apis="$(find . -maxdepth 1 -type d -regex '.*/cookbook-structuring-apis-[0-9.]*')"
|
|
- PKGDIR_cookbook_using_custom_monad="$(find . -maxdepth 1 -type d -regex '.*/cookbook-using-custom-monad-[0-9.]*')"
|
|
- PKGDIR_cookbook_using_free_client="$(find . -maxdepth 1 -type d -regex '.*/cookbook-using-free-client-[0-9.]*')"
|
|
# Generate cabal.project
|
|
- rm -rf cabal.project cabal.project.local cabal.project.freeze
|
|
- touch cabal.project
|
|
- |
|
|
echo "packages: ${PKGDIR_servant}" >> cabal.project
|
|
echo "packages: ${PKGDIR_servant_client}" >> cabal.project
|
|
echo "packages: ${PKGDIR_servant_client_core}" >> cabal.project
|
|
echo "packages: ${PKGDIR_servant_http_streams}" >> cabal.project
|
|
echo "packages: ${PKGDIR_servant_docs}" >> cabal.project
|
|
echo "packages: ${PKGDIR_servant_foreign}" >> cabal.project
|
|
echo "packages: ${PKGDIR_servant_server}" >> cabal.project
|
|
echo "packages: ${PKGDIR_tutorial}" >> cabal.project
|
|
echo "packages: ${PKGDIR_servant_machines}" >> cabal.project
|
|
echo "packages: ${PKGDIR_servant_conduit}" >> cabal.project
|
|
echo "packages: ${PKGDIR_servant_pipes}" >> cabal.project
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: ${PKGDIR_cookbook_basic_auth}" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: ${PKGDIR_cookbook_curl_mock}" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: ${PKGDIR_cookbook_basic_streaming}" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: ${PKGDIR_cookbook_db_postgres_pool}" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: ${PKGDIR_cookbook_file_upload}" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: ${PKGDIR_cookbook_generic}" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: ${PKGDIR_cookbook_testing}" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: ${PKGDIR_cookbook_structuring_apis}" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: ${PKGDIR_cookbook_using_custom_monad}" >> cabal.project ; fi
|
|
if [ $HCNUMVER -ge 80400 ] ; then echo "packages: ${PKGDIR_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 "constraints: sqlite-simple < 0" >> cabal.project
|
|
echo "allow-newer: servant-multipart-0.11.4:http-media" >> cabal.project
|
|
echo "allow-newer: servant-multipart-0.11.4:lens" >> cabal.project
|
|
echo "allow-newer: servant-js-0.9.4:base" >> cabal.project
|
|
echo "allow-newer: servant-js-0.9.4:base-compat" >> cabal.project
|
|
echo "allow-newer: servant-js-0.9.4:lens" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:base" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:base-compat-batteries" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:hspec" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:http-client" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:http-media" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:QuickCheck" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:servant" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:servant-client" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:servant-server" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:time" >> cabal.project
|
|
echo "allow-newer: servant-quickcheck-0.0.7.4:warp" >> cabal.project
|
|
echo "allow-newer: aeson-pretty-0.8.7:base-compat" >> 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: io-streams-1.5.1.0:primitive" >> 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-file-upload|cookbook-generic|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
|
|
# Building with tests and benchmarks...
|
|
# build & run tests, build benchmarks
|
|
- ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output
|
|
# Testing...
|
|
- ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output
|
|
# haddock...
|
|
- ${CABAL} v2-haddock $WITHCOMPILER --with-haddock $HADDOCK ${TEST} ${BENCH} all | color_cabal_output
|
|
# Constraint sets
|
|
- rm -rf cabal.project.local
|
|
# Constraint set http-media-0.8
|
|
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='http-media ==0.8.*' all | color_cabal_output
|
|
# Constraint set http-media-0.7
|
|
- if [ $HCNUMVER -lt 80800 ] ; then ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='http-media ==0.7.*' all | color_cabal_output ; fi
|
|
# Constraint set base-compat-0.10
|
|
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='base-compat ==0.10.*' all | color_cabal_output
|
|
# Constraint set base-compat-0.11
|
|
- ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='base-compat ==0.11.*' all | color_cabal_output
|
|
|
|
# REGENDATA ["--config=cabal.haskell-ci","--output=.travis.yml","cabal.project"]
|
|
# EOF
|