forked from haskell-hint/hint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (25 loc) · 972 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
# the default is Ruby, which is slow
language: c
matrix:
include:
- env: CABALVER=3.2 GHCVER=8.6.5
addons: {apt: {packages: [cabal-install-3.2, ghc-8.6.5], sources: [hvr-ghc]}}
- env: CABALVER=3.2 GHCVER=8.8.2
addons: {apt: {packages: [cabal-install-3.2, ghc-8.8.2], sources: [hvr-ghc]}}
- env: CABALVER=3.2 GHCVER=8.10.1
addons: {apt: {packages: [cabal-install-3.2, ghc-8.10.1], sources: [hvr-ghc]}}
- env: CABALVER=3.2 GHCVER=8.10.1 CONFIG_OPTS=--enable-executable-dynamic
addons: {apt: {packages: [cabal-install-3.2, ghc-8.10.1], sources: [hvr-ghc]}}
cache:
directories:
- $HOME/.cabal/
- $HOME/.ghc/
- dist-newstyle/
before_install:
- export PATH=/opt/ghc/$GHCVER/bin:/opt/cabal/$CABALVER/bin:$PATH
install:
- travis_retry cabal update
- cabal v2-build --only-dependencies --enable-tests
script:
- cabal v2-test
- cabal v2-exec -- runghc examples/example.hs | diff examples/expected.txt -