on master help sign in
Try to run tests with 7.10.1

Based on some random script from the internet

commit404012b991b9e28815bec40d342f3508a700a48d authorEvan Czaplicki <info@elm-lang.org> dateMon 1 Jun 2015, 17:20 (11 years ago) parent404f0e6
1 file changed+33−14
.travis.yml+33−14
.travis.yml+33−14
@@ -1,31 +1,50 @@
1−# Based on https://github.com/hvr/multi-ghc-travis and https://github.com/ekmett/lens/blob/master/.travis.yml
2−
31# NB: don't set `language: haskell` here
42
53# The following enables several GHC versions to be tested; often it's enough to test only against the last release in a major GHC version. Feel free to omit lines listings versions you don't need/want testing for.
64env:
7− - GHCVER=7.6.3
8− - GHCVER=7.8.2
5+ - CABALVER=1.18 GHCVER=7.6.3
6+ - CABALVER=1.18 GHCVER=7.8.3
7+ - CABALVER=1.22 GHCVER=7.10.1
8+
9+matrix:
10+ allow_failures:
11+ - env: CABALVER=1.22 GHCVER=7.10.1
912
1013# Note: the distinction between `before_install` and `install` is not important.
1114before_install:
1215 - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
1316 - travis_retry sudo apt-get update
14− - travis_retry sudo apt-get install cabal-install-1.18 ghc-$GHCVER happy alex # see note about happy/alex
15− - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/1.18/bin:$PATH
16− - cabal update
17− # Update happy when building with GHC 7.8 or head
17+ - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER # see note about happy/alex
18+ - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
1819 - |
19− if [ $GHCVER = "head" ] || [ $GHCVER = "7.8.2" ]; then
20− cabal install happy alex
21− export PATH=$HOME/.cabal/bin:$PATH
22− fi
20+ if [ $GHCVER = "head" ] || [ ${GHCVER%.*} = "7.8" ] || [ ${GHCVER%.*} = "7.10" ]; then
21+ travis_retry sudo apt-get install happy-1.19.4 alex-3.1.3
22+ export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH
23+ else
24+ travis_retry sudo apt-get install happy alex
25+ fi
2326
2427install:
28+ - cabal --version
29+ - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
30+ - travis_retry cabal update
2531 - cabal install --only-dependencies --enable-tests --enable-benchmarks
2632
2733# Here starts the actual work to be performed for the package under test; any command which exits with a non-zero exit code causes the build to fail.
2834script:
29− - cabal configure --enable-tests
30− - cabal build
35+ - if [ -f configure.ac ]; then autoreconf -i; fi
36+ - cabal configure --enable-tests --enable-benchmarks -v2 # -v2 provides useful information for debugging
37+ - cabal build # this builds all libraries and executables (including tests/benchmarks)
3138 - cabal test
39+ - cabal check
40+ - cabal sdist # tests that a source-distribution can be generated
41+
42+# The following scriptlet checks that the resulting source distribution can be built & installed
43+ - export SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}') ;
44+ cd dist/;
45+ if [ -f "$SRC_TGZ" ]; then
46+ cabal install --force-reinstalls "$SRC_TGZ";
47+ else
48+ echo "expected '$SRC_TGZ' not found";
49+ exit 1;
50+ fi