-
Notifications
You must be signed in to change notification settings - Fork 2
/
circle.yml
44 lines (40 loc) · 1.25 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
44
general:
branches:
ignore:
- master
machine:
pre:
- curl -sSL https://s3.amazonaws.com/circle-downloads/install-circleci-docker.sh | bash -s -- 1.10.0
services:
- docker
node:
version: 6.5.0
environment:
AWS_ACCOUNT_ID: 886403637725
APP_NAME: central-fraud-sharing
DOCKER_IMAGE: leveloneproject/$APP_NAME
AWS_REGION: us-west-2
BUCKET: elasticbeanstalk-$AWS_REGION-$AWS_ACCOUNT_ID
INTG_TEST_CMD: tape 'test/integration/**/*.test.js' | tap-xunit > ./test/results/tape-integration.xml
dependencies:
pre:
- sudo rm -f /usr/local/bin/docker-compose
- sudo pip install docker-compose==1.8.1
- curl -udwolla:$NPM_TOKEN "https://modusbox.jfrog.io/modusbox/api/npm/level1-npm-release/auth/leveloneproject" >> .npmrc
post:
- docker build -t $DOCKER_IMAGE .
test:
pre:
- mkdir -p ./test/results
override:
- set -o pipefail && npm -s run test:xunit > ./test/results/tape.xml
- npm -s run test:coverage-check
post:
- cp ./test/results/* $CIRCLE_TEST_REPORTS
- mv ./coverage $CIRCLE_ARTIFACTS
deployment:
dev:
tag: /v[0-9]+(\.[0-9]+)*/
commands:
- node deploy/node/index.js
- aws s3 cp $CIRCLE_ARTIFACTS/coverage/lcov.info s3://$BUCKET/sonar/$APP_NAME/lcov.info