@@ -4,7 +4,7 @@
44#
55# For more information, see https://github.com/haskell-CI/haskell-ci
66#
7−# version: 0.3.20190804.2
7+# version: 0.3.20190814
88#
99language: c
1010dist: xenial
@@ -25,12 +25,10 @@ before_cache:
2525 - rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar
2626 - rm -fv $CABALHOME/packages/hackage.haskell.org/01-index.tar.idx
2727 - rm -rfv $CABALHOME/packages/head.hackage
28−
2928matrix:
3029 include:
3130 - compiler: ghcjs-8.4
32− addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.4.4","cabal-install-3.0"]}}
33− env: GHCJS_PACKAGE="ghcjs-8.4"
31+ addons: {"apt":{"sources":["hvr-ghc"],"packages":["cabal-install-3.0"]}}
3432 - compiler: ghc-8.6.5
3533 addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.6.5","cabal-install-2.4"]}}
3634 - compiler: ghc-8.4.4
@@ -39,18 +37,14 @@ matrix:
3937 addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.2.2","cabal-install-2.4"]}}
4038 - compiler: ghc-8.0.2
4139 addons: {"apt":{"sources":["hvr-ghc"],"packages":["ghc-8.0.2","cabal-install-2.4"]}}
42− allow_failures:
43− - compiler: "ghcjs-8.4" # This hits the travis 50min time limit and fails
44−
4540before_install:
4641 - |
47− if [ "$TRAVIS_OS_NAME" = "linux" ] && [ ! -z "$GHCJS_PACKAGE" ]; then
48− curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -;
49− sudo sh -c "echo deb https://deb.nodesource.com/node_8.x xenial main > /etc/apt/sources.list.d/nodesource.list";
42+ if [ "$TRAVIS_OS_NAME" = "linux" ]; then
5043 sudo add-apt-repository -y ppa:hvr/ghcjs;
44+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
45+ sudo apt-add-repository 'https://deb.nodesource.com/node_8.x xenial main'
5146 sudo apt-get update;
52− sudo apt-get install nodejs;
53− sudo apt-get install "$GHCJS_PACKAGE";
47+ sudo apt-get install $CC cabal-install-3.0 nodejs;
5448 fi
5549 - HC=$(echo "/opt/$CC/bin/ghc" | sed 's/-/\//')
5650 - WITHCOMPILER="-w $HC"
@@ -62,8 +56,8 @@ before_install:
6256 else
6357 GHCJS=false;
6458 fi
65− - if $GHCJS ; then sudo apt-get install -y ghc-8.6.5 ; fi
66− - if $GHCJS ; then PATH="/opt/ghc/8.6.5/bin:$PATH" ; fi
59+ - if $GHCJS ; then sudo apt-get install -y ghc-8.4.4 ; fi
60+ - if $GHCJS ; then PATH="/opt/ghc/8.4.4/bin:$PATH" ; fi
6761 - HCPKG="$HC-pkg"
6862 - unset CC
6963 - CABAL=/opt/ghc/bin/cabal
@@ -99,6 +93,7 @@ install:
9993 - echo $GHCJS
10094 - TEST=--enable-tests
10195 - BENCH=--enable-benchmarks
96+ - BENCH=--disable-benchmarks
10297 - HEADHACKAGE=false
10398 - rm -f $CABALHOME/config
10499 - |
@@ -120,20 +115,19 @@ install:
120115 - cat $CABALHOME/config
121116 - rm -fv cabal.project cabal.project.local cabal.project.freeze
122117 - travis_retry ${CABAL} v2-update -v
123− - if $GHCJS ; then (cd /tmp && ${CABAL} v2-install -w ghc-8.6.5 happy) ; fi
118+ - if $GHCJS ; then (cd /tmp && ${CABAL} v2-install -w ghc-8.4.4 happy) ; fi
124119 # Generate cabal.project
125120 - rm -rf cabal.project cabal.project.local cabal.project.freeze
126121 - touch cabal.project
127122 - |
128123 echo "packages: ." >> cabal.project
124+ - |
129125 - cat cabal.project || true
130126 - cat cabal.project.local || true
131127 - if [ -f "./configure.ac" ]; then (cd "." && autoreconf -i); fi
132128 - ${CABAL} v2-freeze $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
133− - ${CABAL} v2-configure $WITHCOMPILER ${TEST} ${BENCH} | color_cabal_output
134129 - "cat cabal.project.freeze | sed -E 's/^(constraints: *| *)//' | sed 's/any.//'"
135− - rm cabal.project.freeze || true
136− - rm cabal.project.local || true
130+ - rm cabal.project.freeze
137131script:
138132 - DISTDIR=$(mktemp -d /tmp/dist-test.XXXX)
139133 # Packaging...
@@ -152,7 +146,6 @@ script:
152146 - |
153147 - cat cabal.project || true
154148 - cat cabal.project.local || true
155− - rm cabal.project.local || true
156149 # Building...
157150 # this builds all libraries and executables (without tests/benchmarks)
158151 - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
@@ -160,23 +153,19 @@ script:
160153 # build & run tests, build benchmarks
161154 - ${CABAL} v2-build $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output
162155 # Testing...
163− - if ! $GHCJS && [ $HCNUMVER -ge 80000 ] && [ $HCNUMVER -lt 80606 ] ; then ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output ; fi
156+ - if ! $GHCJS ; then ${CABAL} v2-test $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output ; fi
164157 # cabal check...
165158 - (cd ${PKGDIR_reflex} && ${CABAL} -vnormal check)
166159 # haddock...
167− - if ! $GHCJS && [ $HCNUMVER -ge 80000 ] && [ $HCNUMVER -lt 80606 ] ; then ${CABAL} v2-haddock $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output ; fi
168− # Building without installed constraints for packages in global-db...
169− - rm -f cabal.project.local || true
170− - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks all | color_cabal_output
160+ - if ! $GHCJS ; then ${CABAL} v2-haddock $WITHCOMPILER ${TEST} ${BENCH} all | color_cabal_output ; fi
171161 # Constraint sets
172− - rm -rf cabal.project.local || true
162+ - rm -rf cabal.project.local
173163 # Constraint set no-th
174164 - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='reflex -use-template-haskell' all | color_cabal_output
175− # Constraint sets
176− - rm -rf cabal.project.local || true
177− # Constraint set don't use split these/semialign
178− - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='reflex -split-these' all | color_cabal_output
165+ # Constraint set old-these
166+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='these <1' all | color_cabal_output
167+ # Constraint set old-witherable
168+ - ${CABAL} v2-build $WITHCOMPILER --disable-tests --disable-benchmarks --constraint='witherable <0.3.2' all | color_cabal_output
179169
180170# REGENDATA ["--config=cabal.haskell-ci","cabal.project"]
181171# EOF
182−