Skip to content

Commit

Permalink
Added travis for haskell
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherKing42 committed Feb 16, 2016
1 parent 82f318a commit b81d87f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .haskell.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# From http://docs.haskellstack.org/en/stable/GUIDE.html#travis-with-caching
# To test, make a test branch and rename this to `.travis.yml`

# Use new container infrastructure to enable caching
sudo: false

# Choose a lightweight base image; we provide our own build tools.
language: c

# GHC depends on GMP. You can add other dependencies here as well.
addons:
apt:
packages:
- libgmp-dev

# The different configurations we want to test. You could also do things like
# change flags or use --stack-yaml to point to a different file.

before_install:
# Download and unpack the stack executable
- cd haskell
- 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'

# This line does all of the work: installs GHC if necessary, build the library,
# executables, and test suites, and runs the test suites. --no-terminal works
# around some quirks in Travis's terminal implementation.
script:
- stack --no-terminal --install-ghc build
- stack exec skynet +RTS -N

# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack

0 comments on commit b81d87f

Please sign in to comment.