-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
42 lines (42 loc) · 1.12 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: haskell
env:
- GHCVER=7.6.3
- GHCVER=7.8.4
- GHCVER=7.10.2
- GHCVER=head
matrix:
allow_failures:
- env: GHCVER=head
before_install:
- |
if [ $GHCVER = `ghc --numeric-version` ]; then
travis/cabal-apt-install --enable-tests $MODE
export CABAL=cabal
else
travis_retry sudo add-apt-repository -y ppa:hvr/ghc
travis_retry sudo apt-get update
travis_retry sudo apt-get install cabal-install-1.22 ghc-$GHCVER happy
export CABAL=cabal-1.22
export PATH=/opt/ghc/$GHCVER/bin:$PATH
fi
- $CABAL update
- |
$CABAL install happy alex
export PATH=$HOME/.cabal/bin:$PATH
install:
- $CABAL install --dependencies-only --enable-tests
- $CABAL configure -flib-Werror --enable-tests $MODE
script:
- ghc --numeric-version
- $CABAL check
- $CABAL build
- $CABAL test --show-details=always
deploy:
provider: hackage
username: AlexanderThiemann
skip_cleanup: true
on:
condition: $GHCVER = 7.8.4
tags: true
password:
secure: pVm3aOrL88VnTBbkHz5SrSQgoyw6HW71k6gJObkZtLTFVuzVOxauRhD4SnzzkDN+KzolYOnDe86/QDWkszRl+dQm4ksiLb2rrpeILzUHknpBglZRG8yRJexEVxZ/LKs6WLp5SoZnieubA6ULrN9q6W+86h7Chb6DOdX7H8kj8vw=