This repository has been archived by the owner on Nov 29, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
circle.yml
43 lines (37 loc) · 1.45 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
machine:
environment:
PATH: "$HOME/.local/bin:$PATH"
STACK_VERSION: 1.6.1
_JAVA_OPTIONS: "-Xms512m -Xmx1024m"
AWS_ACCESS_KEY_ID: dummy
AWS_SECRET_ACCESS_KEY: dummy
AWS_DEFAULT_REGION: us-west-2
GHC_8_0_RESOLVER: nightly-2017-07-25
java:
version: openjdk7
post:
- curl -k -L -o dynamodb-local.tgz http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.tar.gz
- tar -xzf dynamodb-local.tgz
- java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb:
background: true
dependencies:
pre:
- mkdir -p ~/.local/bin
- curl -L https://github.com/commercialhaskell/stack/releases/download/v$STACK_VERSION/stack-$STACK_VERSION-linux-x86_64.tar.gz | tar -xzv -C ~/.local/bin && ln -vsf ~/.local/bin/stack-*/stack ~/.local/bin/stack
cache_directories:
- "~/.stack"
- "~/eventful/.stack-work"
override:
- stack setup --resolver $GHC_8_0_RESOLVER
- stack build --resolver $GHC_8_0_RESOLVER --test --only-dependencies --no-run-tests --jobs=1
- stack setup
- stack build --test --only-dependencies --no-run-tests --jobs=1
database:
override:
- psql -U postgres -c "CREATE DATABASE eventful_test"
test:
override:
- stack --resolver $GHC_8_0_RESOLVER test --pedantic --jobs=1
- stack --resolver $GHC_8_0_RESOLVER haddock --fast --no-haddock-deps --jobs=1
- stack test --pedantic --jobs=1
- stack haddock --fast --no-haddock-deps --jobs=1