-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.travis.yml
36 lines (31 loc) · 955 Bytes
/
.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
# Sudo used for custom apt setup
sudo: true
# Add new environments to the build here:
env:
- GHCVER=8.0.2 CABALVER=3.0
- GHCVER=8.2.2 CABALVER=3.0
- GHCVER=8.4.4 CABALVER=3.0
- GHCVER=8.6.5 CABALVER=3.0
- GHCVER=8.8.1 CABALVER=3.0
- GHCVER=head CABALVER=head
# Allow for develop branch to break
matrix:
allow_failures:
- env: GHCVER=8.8.1 CABALVER=3.0
- env: GHCVER=head CABALVER=head
# Manually install ghc and cabal
before_install:
- travis_retry sudo add-apt-repository -y ppa:hvr/ghc
- travis_retry sudo apt-get update
- travis_retry sudo apt-get install cabal-install-$CABALVER ghc-$GHCVER
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
- export PATH=$HOME/.cabal/bin:$PATH
- travis_retry cabal update
# Install Happy and Alex first, before installing
install:
- echo $PATH
- cabal --version
- ghc --version
- cabal configure --verbose --enable-tests
script:
- cabal test