1# Use new container infrastructure to enable caching
4# Choose a lightweight base image; we provide our own build tools.
7# GHC depends on GMP. You can add other dependencies here as well.
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.
17- ARGS="--stack-yaml=stack-lts-2.yaml"
18- ARGS="--resolver=lts-3"
19- ARGS="--resolver=lts"
20- ARGS="--stack-yaml=stack-nightly.yaml"
23# Download and unpack the stack executable
24- mkdir -p ~/.local/bin
25- export PATH=$HOME/.local/bin:$PATH
26- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
29 - wget --no-check-certificate https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.5.2.tar.gz
30 - tar xzf elasticsearch-1.5.2.tar.gz
31 - ./elasticsearch-1.5.2/bin/elasticsearch &
34# This line does all of the work: installs GHC if necessary, build the library,
35# executables, and test suites, and runs the test suites. --no-terminal works
36# around some quirks in Travis's terminal implementation.
39 - stack $ARGS test $BUILDFLAGS --no-terminal --haddock --no-haddock-deps
41 - stack $ARGS build $BUILDFLAGS
42 - for f in katip/examples/*.hs; do stack $ARGS ghc -- -Wall -Werror $f -o /dev/null; done
45# Caching so the next build will be fast too.
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list