Skip to content

Commit

Permalink
Update CircleCI configuraiton script
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed Dec 29, 2017
1 parent 4678b81 commit e94d8a1
Showing 1 changed file with 27 additions and 20 deletions.
47 changes: 27 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@
dependencies:
cache_directories:
- "~/.stack"
pre:
# Download and unpack the stack executable
- mkdir -p "$HOME/.local/bin"
- export "PATH=$HOME/.local/bin:$PATH"
- curl -L https://github.com/commercialhaskell/stack/releases/download/v1.6.3/stack-1.6.3-linux-x86_64.tar.gz | tar zx -C "$HOME/.local/bin" '*/stack'
- curl -L https://github.com/rubik/stack-hpc-coveralls/releases/download/v0.0.4.0/shc-linux-x64-8.0.1.tar.bz2 | tar xj -C "$HOME/.local/bin"
override:
# Build dependencies
- stack -j2 --no-terminal --install-ghc test --only-dependencies

test:
override:
# Build the package, its tests, and its docs, and run the tests
- stack -j2 --no-terminal test --haddock --no-haddock-deps --coverage
post:
# Collect and submit coverage information
- shc wavetoy1 wavetoy1-test-suite
version: 2
jobs:
build:
docker:
- image: buildpack-deps:trusty
steps:
- checkout
- run: echo "hello world"
# Download and unpack the stack executable
- run: |
mkdir -p "$HOME/.local/bin"
export "PATH=$HOME/.local/bin:$PATH"
curl -L https://github.com/commercialhaskell/stack/releases/download/v1.6.3/stack-1.6.3-linux-x86_64.tar.gz | tar zx -C "$HOME/.local/bin" '*/stack'
curl -L https://github.com/rubik/stack-hpc-coveralls/releases/download/v0.0.4.0/shc-linux-x64-8.0.1.tar.bz2 | tar xj -C "$HOME/.local/bin"
# Build dependencies
- run: |
stack -j2 --no-terminal --install-ghc test --only-dependencies
# Build the package, its tests, and its docs, and run the
# tests
- run: |
stack -j2 --no-terminal test --haddock --no-haddock-deps --coverage
# Collect and submit coverage information
- run: |
shc wavetoy1 wavetoy1-test-suite
# cache_directories:
# - "~/.stack"

0 comments on commit e94d8a1

Please sign in to comment.