2016-09-24 22:01:53 +00:00
|
|
|
language: c
|
|
|
|
dist: trusty
|
|
|
|
sudo: required
|
2016-09-24 21:52:55 +00:00
|
|
|
|
|
|
|
# Caching so the next build will be fast too.
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.stack
|
2016-09-25 23:23:55 +00:00
|
|
|
- packages
|
2016-10-23 04:58:13 +00:00
|
|
|
- output
|
2016-09-24 21:52:55 +00:00
|
|
|
|
|
|
|
# Download and unpack the stack executable
|
2016-10-09 01:11:19 +00:00
|
|
|
before_install:
|
|
|
|
- mkdir -p ~/.local/bin
|
|
|
|
- export PATH=$HOME/.local/bin:$PATH
|
|
|
|
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
|
|
|
|
|
|
|
|
env:
|
|
|
|
- PATH=$HOME/purescript:$PATH
|
|
|
|
|
|
|
|
install:
|
2016-10-13 02:19:39 +00:00
|
|
|
- TAG=v0.10.1
|
2016-10-09 01:11:19 +00:00
|
|
|
- wget -O $HOME/purescript.tar.gz https://github.com/purescript/purescript/releases/download/$TAG/linux64.tar.gz
|
|
|
|
- tar -xvf $HOME/purescript.tar.gz -C $HOME/
|
|
|
|
- chmod a+x $HOME/purescript
|
2016-09-24 21:52:55 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- stack setup
|
|
|
|
- stack build
|
|
|
|
- stack exec verify-package-set
|