Browse Source

Pipelines: Add test script hooks for CC

master
Futago-za Ryuu 3 years ago
parent
commit
0259640d3c
  1. 8
      azure-pipelines.yml

8
azure-pipelines.yml

@ -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