From 96e873212a8b71972d2472b418b54ba2c3f3b1cb Mon Sep 17 00:00:00 2001 From: Mathieu Boespflug Date: Thu, 1 Oct 2015 16:47:25 +0200 Subject: [PATCH] Switch to recent non-buggy stack for CI. --- circle.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/circle.yml b/circle.yml index 4ab52fa6..5501d3a5 100644 --- a/circle.yml +++ b/circle.yml @@ -9,21 +9,22 @@ machine: dependencies: override: # Even though we have stack in docker image, we still need it on CI + - curl -LO https://github.com/commercialhaskell/stack/releases/download/v0.1.5.0/stack-0.1.5.0-x86_64-linux.tar.gz + - tar xf stack-0.1.5.0-x86_64-linux.tar.gz - mkdir -p ~/.local/bin - - curl -L https://github.com/commercialhaskell/stack/releases/download/v0.1.3.0/stack-0.1.3.0-x86_64-linux.gz | gunzip > ~/.local/bin/stack - - chmod a+x ~/.local/bin/stack - - (cd /; stack --no-terminal setup; stack --no-terminal upgrade --git) - # should run inside docker + - cp stack-0.1.5.0-x86_64-linux/stack ~/.local/bin + # should run inside docker container - stack --no-terminal docker pull - stack --no-terminal --docker build --only-snapshot --prefetch --test --bench cache_directories: - "~/.stack/" +build: + override: + - stack --no-terminal --docker build --pedantic --test --bench --haddock --no-haddock-deps --no-run-tests --no-bench + test: override: - # XXX Have to build twice due to - # https://github.com/commercialhaskell/stack/issues/805. - - stack --no-terminal --docker build - - stack --no-terminal --docker build --pedantic --test --bench - - stack --no-terminal --docker haddock --no-haddock-deps + - stack --no-terminal --docker test + - stack --no-terminal --docker bench