Skip to content

Commit

Permalink
Switch to recent non-buggy stack for CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
mboes committed Oct 1, 2015
1 parent e2bc45b commit 96e8732
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 96e8732

Please sign in to comment.