forked from hadolint/language-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (43 loc) · 1.38 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
49
50
51
52
53
54
55
# 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"
- env: ARGS="--resolver lts-9.13"
# Nightly builds are allowed to fail
- env: ARGS="--resolver nightly"
# Build on OS X in addition to Linux
- env: ARGS="--resolver lts"
os: osx
- env: ARGS="--resolver lts-9.13"
os: osx
- env: ARGS="--resolver nightly"
os: osx
allow_failures:
- env: ARGS="--resolver nightly"
before_install:
# Download and unpack the stack executable
- mkdir -p ~/.local/bin
- |
if [ `uname` = "Darwin" ]
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 --no-run-benchmarks --haddock --no-haddock-deps