Skip to content

Commit

Permalink
Fixed build script
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-murzinov authored and jaspervdj committed Oct 15, 2017
1 parent 4e97fd6 commit f9c6462
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
language: haskell
ghc: '7.10'
sudo: false

cache:
directories:
- $HOME/.stack

branches:
only:
- master

cache:
directories:
- $HOME/.stack
- .stack-work

before_install:
- echo "override 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'

install:
- wget https://github.com/commercialhaskell/stack/releases/download/v1.0.0/stack-1.0.0-linux-x86_64.tar.gz -O stack.gz
- tar xvf stack.gz
- chmod +x stack-1.0.0-linux-x86_64/stack
- stack-1.0.0-linux-x86_64/stack setup
- stack-1.0.0-linux-x86_64/stack build
- stack --no-terminal --skip-ghc-check setup

before_script:
- echo "override before_script"

script:
- stack-1.0.0-linux-x86_64/stack test
- stack --no-terminal --skip-ghc-check test

0 comments on commit f9c6462

Please sign in to comment.