-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fea32b5
commit 2d2ecfe
Showing
2 changed files
with
32 additions
and
0 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,5 +1,6 @@ | ||
.git* | ||
.js* | ||
circle.yml | ||
external.jsdoc | ||
example/ | ||
jsdoc/ | ||
|
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 |
---|---|---|
@@ -0,0 +1,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: "---------------------" | ||
|
||
## 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 |