@@ -4,6 +4,8 @@
44#
55# For more information, see https://github.com/haskell-CI/haskell-ci
66#
7+# version: 0.1.0.0
8+#
79language: c
810dist: xenial
911
@@ -38,25 +40,18 @@ before_cache:
3840matrix:
3941 include:
4042 - compiler: "ghc-8.6.3"
41− # env: TEST=--disable-tests BENCH=--disable-benchmarks
4243 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.6.3], sources: [hvr-ghc]}}
4344 - compiler: "ghc-8.4.4"
44− # env: TEST=--disable-tests BENCH=--disable-benchmarks
4545 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.4.4], sources: [hvr-ghc]}}
4646 - compiler: "ghc-8.2.2"
47− # env: TEST=--disable-tests BENCH=--disable-benchmarks
4847 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.2.2], sources: [hvr-ghc]}}
4948 - compiler: "ghc-8.0.2"
50− # env: TEST=--disable-tests BENCH=--disable-benchmarks
5149 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-8.0.2], sources: [hvr-ghc]}}
5250 - compiler: "ghc-7.10.3"
53− # env: TEST=--disable-tests BENCH=--disable-benchmarks
5451 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-7.10.3], sources: [hvr-ghc]}}
5552 - compiler: "ghc-7.8.4"
56− # env: TEST=--disable-tests BENCH=--disable-benchmarks
5753 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-7.8.4], sources: [hvr-ghc]}}
5854 - compiler: "ghc-7.6.3"
59− # env: TEST=--disable-tests BENCH=--disable-benchmarks
6055 addons: {apt: {packages: [ghc-ppa-tools,cabal-install-2.4,ghc-7.6.3], sources: [hvr-ghc]}}
6156
6257before_install:
@@ -65,7 +60,7 @@ before_install:
6560 - unset CC
6661 - CABAL=/opt/ghc/bin/cabal
6762 - CABALHOME=$HOME/.cabal
68− - "export PATH=\"$CABALHOME/bin:$PATH\""
63+ - export PATH="$CABALHOME/bin:$PATH"
6964 - ROOTDIR=$(pwd)
7065 - HCNUMVER=$(( $(${HC} --numeric-version|sed -E 's/([0-9]+)\.([0-9]+)\.([0-9]+).*/\1 * 10000 + \2 * 100 + \3/') ))
7166 - echo $HCNUMVER
@@ -73,12 +68,11 @@ before_install:
7368install:
7469 - ${CABAL} --version
7570 - echo "$(${HC} --version) [$(${HC} --print-project-git-commit-id 2> /dev/null || echo '?')]"
76− - BENCH=${BENCH---enable-benchmarks}
77− - TEST=${TEST---enable-tests}
78− - UNCONSTRAINED=${UNCONSTRAINED-true}
71+ - TEST=--enable-tests
72+ - BENCH=--enable-benchmarks
7973 - GHCHEAD=${GHCHEAD-false}
8074 - travis_retry ${CABAL} update -v
81− - "sed -i.bak 's/^jobs:/-- jobs:/' $CABALHOME/config"
75+ - sed -i.bak 's/^jobs:/-- jobs:/' $CABALHOME/config
8276 - rm -fv cabal.project cabal.project.local
8377 - grep -Ev -- '^\s*--' $CABALHOME/config | grep -Ev '^\s*$'
8478 - rm -f cabal.project
@@ -122,14 +116,14 @@ script:
122116 - ${CABAL} new-build -w ${HC} ${TEST} ${BENCH} all
123117 - if [ "x$TEST" = "x--enable-tests" ]; then ${CABAL} new-test -w ${HC} ${TEST} ${BENCH} all; fi
124118
125− # ${CABAL} check
119+ # cabal check
126120 - (cd postgresql-simple-* && ${CABAL} check)
127121
128122 # haddock
129123 - ${CABAL} new-haddock -w ${HC} ${TEST} ${BENCH} all
130124
131125 # Build without installed constraints for packages in global-db
132− - if $UNCONSTRAINED; then rm -f cabal.project.local; ${CABAL} new-build -w ${HC} --disable-tests --disable-benchmarks all; else echo "Not building without installed constraints"; fi
126+ - rm -f cabal.project.local; ${CABAL} new-build -w ${HC} --disable-tests --disable-benchmarks all;
133127
134128# REGENDATA ["--config","cabal.haskell-ci","--output",".travis.yml","postgresql-simple.cabal"]
135129# EOF