on master help sign in
Add back the "script" header thing

Also get much closer to the .travis.yml script that worked

commit977041cb295f8bce6324c5db091eb11ee6941025 authorEvan Czaplicki <info@elm-lang.org> dateMon 1 Jun 2015, 18:52 (11 years ago) parentfa1853e
1 file changed+8−5
.travis.yml+8−5
.travis.yml+8−5
@@ -1,3 +1,5 @@
1+# Based on https://github.com/hvr/multi-ghc-travis and https://github.com/ekmett/lens/blob/master/.travis.yml
2+
13# NB: don't set `language: haskell` here
24
35# 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.
@@ -6,6 +8,7 @@ env:
68 - CABALVER=1.18 GHCVER=7.8.3
79 - CABALVER=1.22 GHCVER=7.10.1
810
11+
912# Note: the distinction between `before_install` and `install` is not important.
1013before_install:
1114 - travis_retry sudo add-apt-repository -y ppa:hvr/ghc
@@ -13,19 +16,19 @@ before_install:
1316 - travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER # see note about happy/alex
1417 - export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
1518 - |
16− if [ $GHCVER = "head" ] || [ ${GHCVER%.*} = "7.8" ] || [ ${GHCVER%.*} = "7.10" ]; then
19+ if [ ${GHCVER%.*} = "7.8" ] || [ ${GHCVER%.*} = "7.10" ]; then
1720 travis_retry sudo apt-get install happy-1.19.4 alex-3.1.3
1821 export PATH=/opt/alex/3.1.3/bin:/opt/happy/1.19.4/bin:$PATH
1922 else
2023 travis_retry sudo apt-get install happy alex
2124 fi
2225
26+
2327install:
24− - cabal --version
25− - echo "$(ghc --version) [$(ghc --print-project-git-commit-id 2> /dev/null || echo '?')]"
26− - travis_retry cabal update
2728 - cabal install --only-dependencies --enable-tests
28− - if [ -f configure.ac ]; then autoreconf -i; fi
29+
30+
31+script:
2932 - cabal configure --enable-tests
3033 - cabal build
3134 - cabal test