-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
48 lines (39 loc) · 1.22 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Use new container infrastructure to enable caching
sudo: false
# Choose a lightweight base image; we provide our own build tools.
language: c
compiler: gcc
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack
timeout: 300
matrix:
include:
# The Stack builds. We can pass in arbitrary Stack arguments via the ARGS
# variable, such as using --stack-yaml to point to a different file.
- env: ARGS="--resolver lts"
# Nightly builds are allowed to fail
- env: ARGS="--resolver nightly"
- env:
- PURPOSE="Integration tests"
- ARGS=""
script: make tests
allow_failures:
- env: ARGS="--resolver nightly"
before_install:
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- |
if [[ "${TRAVIS_OS_NAME}" = "osx" ]]
then
travis_retry curl --insecure -L https://www.stackage.org/stack/osx-x86_64 \
| tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
else
travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 \
| tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
fi
install:
- travis_retry stack --no-terminal --install-ghc $ARGS test --only-dependencies
script:
- stack --no-terminal $ARGS test