forked from dmjio/stripe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (30 loc) · 902 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
language: c
# explicitly request container-based infrastructure
sudo: false
matrix:
include:
- env: GHCVER=7.8.4
addons: {apt: {packages: [ghc-7.8.4], sources: [hvr-ghc]}}
- env: GHCVER=7.10.2
addons: {apt: {packages: [ghc-7.10.2],sources: [hvr-ghc]}}
- env: GHCVER=8.0.1
addons: {apt: {packages: [ghc-8.0.1],sources: [hvr-ghc]}}
- env: GHCVER=head
addons: {apt: {packages: [ghc-head], sources: [hvr-ghc]}}
allow_failures:
- env: GHCVER=head
before_install:
- export STACK_YAML=stack-$GHCVER.yaml
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
# stack
- mkdir -p ~/.local/bin
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- export PATH=~/.local/bin:$PATH
install:
- stack setup
- stack build
script:
- stack test
cache:
directories:
- $HOME/.stack