-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcircle.yml
32 lines (29 loc) · 823 Bytes
/
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
machine:
node:
version: 5.1.0
environment:
DATABASE_URL: postgres://ubuntu@localhost:5432/circle_test
NODE_ENV: production
SPLITWISE_CONSUMER_KEY:
SPLITWISE_CONSUMER_SECRET:
services:
- postgresql
dependencies:
override:
- npm set progress=false
- npm install
test:
override:
- node -v & npm -v
- npm run build:server
- npm run build:client
- npm run test:unit
- npm run test:unit -- --reporter mocha-junit-reporter --reporter-options mochaFile=out/testresults/unit.xml
- npm run test:lint -- -o out/testresults/eslint.xml -f junit
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/out/testresults/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
general:
artifacts:
- "out/buildstats.json"
- "out/testresults"