Pipelines: Add test script hooks for CC

master
Futago-za Ryuu 6 years ago
parent e6c4d8289d
commit 0259640d3c

@ -16,6 +16,14 @@ jobs:
- template: node-test.yml@apt
parameters:
before:
- script: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
displayName: 'Download and Initialize Code Climate Test Reporter'
success_script: cc-test-reporter after-build --exit-code 0
fail_script: cc-test-reporter after-build --exit-code 1
after:
- script: yarn coverage
displayName: 'Publish code coverage results (coveralls.io)'

Loading…
Cancel
Save