on master help sign in
Add comments to stack.yaml
commita4832732b1fea9fa53e608fc21091d4fad4f19af authorMichael Snoyman <michael@snoyman.com> dateSun 6 Sep 2015, 16:58 (11 years ago) parent782a128
1 file changed+11−1
.travis.yml+11−1
.travis.yml+11−1
@@ -1,11 +1,17 @@
1+# Use new container infrastructure to enable caching
12sudo: false
3+
4+# Choose a lightweight base image; we provide our own build tools.
25language: c
36
7+# GHC depends on GMP. You can add other dependencies here as well.
48addons:
59 apt:
610 packages:
711 - libgmp-dev
812
13+# The different configurations we want to test. You could also do things like
14+# change flags or use --stack-yaml to point to a different file.
915env:
1016- ARGS=""
1117- ARGS="--resolver lts-2"
@@ -14,13 +20,17 @@ env:
1420- ARGS="--resolver nightly"
1521
1622before_install:
17−# stack
23+# Download and unpack the stack executable
1824- mkdir -p ~/.local/bin
1925- export PATH=$HOME/.local/bin:$PATH
2026- travis_retry 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
2127
28+# This line does all of the work: installs GHC if necessary, build the library,
29+# executables, and test suites, and runs the test suites. --no-terminal works
30+# around some quirks in Travis's terminal implementation.
2231script: stack $ARGS --no-terminal --install-ghc test
2332
33+# Caching so the next build will be fast too.
2434cache:
2535 directories:
2636 - $HOME/.stack