-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CircleCI configuraiton script
- Loading branch information
Showing
1 changed file
with
27 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |