-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82f318a
commit b81d87f
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |