forked from Surnet/swagger-jsdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
31 lines (28 loc) · 956 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
## General settings
general:
artifacts:
- "jsdoc"
## Customize the test machine
machine:
timezone: Europe/Zurich # Set the timezone
node:
version: 0.12.0 # Version of node to use
environment: # Add some environment variables
JUNIT_REPORT_PATH: "$CIRCLE_TEST_REPORTS/junit/test-results.xml"
JUNIT_REPORT_STACK: 1
CODACY_REPO_TOKEN: "a64579ce1f114344a745eb24df33ecd5"
## Customize dependencies
dependencies:
pre:
- npm install codacy-coverage
- npm install mocha-jenkins-reporter
- npm install jsdoc
- mkdir -p $CIRCLE_TEST_REPORTS/junit/ # Creating directory for test results
## Customize test commands
test:
override:
- node_modules/.bin/istanbul cover _mocha --report lcovonly -- --reporter mocha-jenkins-reporter
- node_modules/.bin/istanbul check-coverage --statement 95
post:
- cat ./coverage/lcov.info | ./node_modules/codacy-coverage/bin/codacy-coverage.js
- npm run-script jsdoc