forked from exercism/haskell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (50 loc) · 1.25 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
43
44
45
46
47
48
49
50
# The Travis docs (https://docs.travis-ci.com/user/languages/haskell)
# suggest that we use `language: haskell` and `ghc:` to specify GHC versions.
# However, as of this writing, Travis only supported versions up to 7.8.
# If Travis supports all versions we would like to test, then we could switch.
# Until then, we use the https://github.com/hvr/multi-ghc-travis setup.
language: c
sudo: false
addons:
apt: &apt
sources:
- hvr-ghc
cabal: &cabal cabal-install-1.22
env:
global:
- CABALVER=1.22
matrix:
include:
- env: GHCVER=7.6.3
addons:
apt:
<<: *apt
packages: [ghc-7.6.3, *cabal]
- env: GHCVER=7.8.4
addons:
apt:
<<: *apt
packages: [ghc-7.8.4, *cabal]
- env: GHCVER=7.10.3
addons:
apt:
<<: *apt
packages: [ghc-7.10.3, *cabal]
- env: GHCVER=8.0.1
addons:
apt:
<<: *apt
packages: [ghc-8.0.1, *cabal]
cache:
directories:
- '$HOME/.ghc'
- '$HOME/.cabal'
before_install:
- './_test/bootstrap.sh'
install:
- true
script:
- 'export PATH=/opt/cabal/$CABALVER/bin:/opt/ghc/$GHCVER/bin:$PATH'
- 'runhaskell -Wall ./_test/check-exercises.hs'
- './bin/fetch-configlet'
- './bin/configlet .'