Skip to content

Commit

Permalink
Prepare for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
chdanielmueller committed Jun 9, 2015
1 parent fea32b5 commit 2d2ecfe
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.git*
.js*
circle.yml
external.jsdoc
example/
jsdoc/
Expand Down
31 changes: 31 additions & 0 deletions circle.yml
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

0 comments on commit 2d2ecfe

Please sign in to comment.