summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorIlya Murzinov <murz42@gmail.com>2017-10-15 17:41:14 +0300
committerJasper Van der Jeugt <jaspervdj@gmail.com>2017-10-15 16:41:14 +0200
commitf9c646217548a650c47707c084becde11ebb96fc (patch)
treef9dc3b3a758524ce990eb3ce7afed773152327b8 /.travis.yml
parent4e97fd6ec921d635d9c31375ad2e86f6a4f167c3 (diff)
downloadhakyll-f9c646217548a650c47707c084becde11ebb96fc.tar.gz
Fixed build script
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml26
1 files changed, 17 insertions, 9 deletions
diff --git a/.travis.yml b/.travis.yml
index d6d1536..ba6728d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -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