forked from k-bx/protocol-buffers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (28 loc) · 1.07 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
language: c
sudo: false
cache:
directories:
- $HOME/.stack
before_install:
# stack
- mkdir -p ~/.local/bin
- export PATH=~/.local/bin:$PATH
- curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.4.0/stack-0.1.4.0-x86_64-linux.tar.gz | tar xz -C ~/.local/bin
matrix:
include:
- env: GHCVER=7.8.4 STACK_YAML=stack-7.8.yaml
addons: {apt: {packages: [ghc-7.8.4], sources: [hvr-ghc]}}
- env: GHCVER=7.10.2 STACK_YAML=stack-7.10.yaml
addons: {apt: {packages: [ghc-7.10.2],sources: [hvr-ghc]}}
- env: GHCVER=8.0.1 STACK_YAML=stack-8.0.1.yaml
addons: {apt: {packages: [ghc-8.0.1],sources: [hvr-ghc]}}
- env: GHCVER=head STACK_YAML=stack-head.yaml
addons: {apt: {packages: [cabal-install-head,ghc-head], sources: [hvr-ghc]}}
allow_failures:
- env: GHCVER=head STACK_YAML=stack-head
install:
- stack --no-terminal --skip-ghc-check setup
- stack --no-terminal --skip-ghc-check install happy alex
- stack --no-terminal --skip-ghc-check test --only-snapshot
script:
- stack --no-terminal --skip-ghc-check test