|
1 | 1 | language: haskell
|
2 |
| - |
3 | 2 | env:
|
4 |
| - - GHCVER=7.6.3 |
5 |
| - - GHCVER=7.8.3 |
6 |
| - - GHCVER=7.10.1 |
7 |
| - - GHCVER=head |
8 |
| - |
| 3 | +- GHCVER=7.6.3 |
| 4 | +- GHCVER=7.8.3 |
| 5 | +- GHCVER=7.10.1 |
| 6 | +- GHCVER=head |
9 | 7 | matrix:
|
10 | 8 | allow_failures:
|
11 |
| - - env: GHCVER=head |
12 |
| - |
| 9 | + - env: GHCVER=head |
13 | 10 | before_install:
|
14 |
| - - | |
15 |
| - if [ $GHCVER = `ghc --numeric-version` ]; then |
16 |
| - travis/cabal-apt-install --enable-tests $MODE |
17 |
| - export CABAL=cabal |
18 |
| - else |
19 |
| - travis_retry sudo add-apt-repository -y ppa:hvr/ghc |
20 |
| - travis_retry sudo apt-get update |
21 |
| - travis_retry sudo apt-get install cabal-install-1.22 ghc-$GHCVER happy |
22 |
| - export CABAL=cabal-1.22 |
23 |
| - export PATH=/opt/ghc/$GHCVER/bin:$PATH |
24 |
| - fi |
25 |
| - - $CABAL update |
26 |
| - - | |
27 |
| - if [ $GHCVER = "head" ] || [ $GHCVER = "7.8.3" ] || [ $GHCVER = "7.10.1" ]; then |
28 |
| - $CABAL install happy alex |
29 |
| - export PATH=$HOME/.cabal/bin:$PATH |
30 |
| - fi |
| 11 | +- | |
| 12 | + if [ $GHCVER = `ghc --numeric-version` ]; then |
| 13 | + travis/cabal-apt-install --enable-tests $MODE |
| 14 | + export CABAL=cabal |
| 15 | + else |
| 16 | + travis_retry sudo add-apt-repository -y ppa:hvr/ghc |
| 17 | + travis_retry sudo apt-get update |
| 18 | + travis_retry sudo apt-get install cabal-install-1.22 ghc-$GHCVER happy |
| 19 | + export CABAL=cabal-1.22 |
| 20 | + export PATH=/opt/ghc/$GHCVER/bin:$PATH |
| 21 | + fi |
| 22 | +- $CABAL update |
| 23 | +- | |
| 24 | + if [ $GHCVER = "head" ] || [ $GHCVER = "7.8.3" ] || [ $GHCVER = "7.10.1" ]; then |
| 25 | + $CABAL install happy alex |
| 26 | + export PATH=$HOME/.cabal/bin:$PATH |
| 27 | + fi |
31 | 28 | install:
|
32 |
| - - $CABAL install --dependencies-only --enable-tests |
33 |
| - - $CABAL configure -flib-Werror --enable-tests $MODE |
34 |
| - |
| 29 | +- $CABAL install --dependencies-only --enable-tests |
| 30 | +- $CABAL configure -flib-Werror --enable-tests $MODE |
35 | 31 | script:
|
36 |
| - - ghc --numeric-version |
37 |
| - - $CABAL check |
38 |
| - - $CABAL build |
39 |
| - - $CABAL test --show-details=always |
| 32 | +- ghc --numeric-version |
| 33 | +- $CABAL check |
| 34 | +- $CABAL build |
| 35 | +- $CABAL test --show-details=always |
| 36 | +deploy: |
| 37 | + provider: hackage |
| 38 | + username: AlexanderThiemann |
| 39 | + skip_cleanup: true |
| 40 | + on: |
| 41 | + tags: true |
| 42 | + password: |
| 43 | + secure: IX4eMDPtSCbNl/3yJpRsvgCsJ5KanCdyENqxQCxoVwe1cv1zK5lcqy2fwlJmFdCXPSuhxlWq9YIbmaOjPS316aGjMfNx+zw/+BQAyKvHU2HPXjAfUZElaVr4fHafL8s2QC/w3TkxjqrA1mGi9qKwX8iSFsxGccif62BmEGB7fQ8= |
0 commit comments