UNPKG

jenkins-mocha

Version:

Bin wrapper for Mocha + Nyc + Xunit (for Jenkins)

28 lines (25 loc) 665 B
shared: image: node:10 jobs: main: requires: [~pr, ~commit] steps: - install: npm install - test: npm test - coverage: | export CI_PULL_REQUEST=${SD_PULL_REQUEST} export COVERALLS_SERVICE_NAME=screwdriver cat ./artifacts/coverage/lcov.info | ./node_modules/.bin/coveralls secrets: # Uploading coverage information to coveralls - COVERALLS_REPO_TOKEN publish: requires: [main] steps: - install: npm install semantic-release - publish: npm run semantic-release secrets: # Publishing to NPM - NPM_TOKEN # Pushing releases to Git - GH_TOKEN