shippable.yml
# language setting
language: node_js
node_js:
- 4.2.3
# The path for Xunit to output test reports
env:
- XUNIT_FILE=shippable/testresults/result.xml
build:
ci:
- mkdir -p shippable/testresults
- mkdir -p shippable/codecoverage
- npm install
- npm run coverage
- npm install xunit-file
- ./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- test/route/*.js test/unit/*.js -R xunit-file
- ./node_modules/.bin/istanbul report cobertura --dir shippable/codecoverage/