Skip to content

Commit

Permalink
ci: Try to reduce disk space required
Browse files Browse the repository at this point in the history
Travis fails because the disk is full.
  • Loading branch information
hpdeifel committed Mar 23, 2018
1 parent 87d1662 commit d918290
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
# Use new container infrastructure to enable caching
sudo: false

language: haskell
language: generic

# Caching so the next build will be fast too.
cache:
directories:
- $HOME/.stack
- $HOME/.stack/
- $HOME/.local/bin/
- .stack-work/

before_install:
- set -e

# stack
- mkdir -p ~/.local/bin
- export PATH=~/.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'

- if [[ ! -x ~/.local/bin/stack ]]; then travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'; chmod a+x ~/.local/bin/stack; fi
- stack --version
- df -h

matrix:
include:
- env: ARGS=""
Expand Down

0 comments on commit d918290

Please sign in to comment.