26 lines
539 B
YAML
26 lines
539 B
YAML
sudo: false
|
|
|
|
env:
|
|
# - GHCVER=7.8.4 STACK_YAML=stack.yaml
|
|
- GHCVER=7.10.1 STACK_YAML=stack.yaml
|
|
|
|
install:
|
|
# ghc
|
|
- export PATH=/opt/ghc/$GHCVER/bin:$PATH
|
|
# stack
|
|
- mkdir -p ~/.local/bin
|
|
- export PATH=~/.local/bin:$PATH
|
|
- travis_retry curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.2.0/stack-0.1.2.0-x86_64-linux.gz | gunzip > ~/.local/bin/stack
|
|
- chmod a+x ~/.local/bin/stack
|
|
|
|
script:
|
|
- stack build
|
|
- stack test
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- hvr-ghc
|
|
packages:
|
|
- ghc-7.8.4
|
|
- ghc-7.10.1
|