forked from wfleming/codeclimate-shellcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
31 lines (26 loc) · 780 Bytes
/
.travis.yml
File metadata and controls
31 lines (26 loc) · 780 Bytes
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
sudo: false
# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack
# Download and unpack the stack executable
before_install:
- mkdir -p ~/.local/bin
- export PATH=$HOME/.local/bin:$PATH
- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
- stack config set system-ghc --global true
- export PATH=/opt/ghc/7.10.2/bin:$PATH
# Install GHC
addons:
apt:
sources:
- hvr-ghc
packages:
- ghc-7.10.2
# Avoid timeouts
install:
- travis_wait stack --no-terminal --skip-ghc-check setup
- travis_wait stack --no-terminal --skip-ghc-check test --only-snapshot
# Run the tests
script:
- stack --no-terminal --skip-ghc-check test --fast