on aeson-time-formatting help sign in
typeable/katip/.travis.yml
48 lines 1.6 kB history raw
1# Use new container infrastructure to enable caching
2sudo: false
4# Choose a lightweight base image; we provide our own build tools.
5language: c
7# GHC depends on GMP. You can add other dependencies here as well.
8addons:
9 apt:
10 packages:
11 - libgmp-dev
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.
15env:
16- ARGS=""
17- ARGS="--stack-yaml=stack-lts-2.yaml"
18- ARGS="--resolver=lts-3"
19- ARGS="--resolver=lts"
20- ARGS="--stack-yaml=stack-nightly.yaml"
22before_install:
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'
28install:
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.
37script:
38 - stack $ARGS setup
39 - stack $ARGS test $BUILDFLAGS --no-terminal --haddock --no-haddock-deps
40 - stack $ARGS bench
41 - stack $ARGS build $BUILDFLAGS
42 - for f in katip/examples/*.hs; do stack $ARGS ghc -- -Wall -Werror $f -o /dev/null; done
43 - stack $ARGS sdist
45# Caching so the next build will be fast too.
46cache:
47 directories:
48 - $HOME/.stack