Browse Source

ci: use beforeEach and afterEach hooks

master
Futago-za Ryuu 3 years ago
parent
commit
b1350d46f8
  1. 4
      azure-pipelines.yml

4
azure-pipelines.yml

@ -17,12 +17,12 @@ jobs:
- template: node-test.yml@apt
parameters:
npm_test: False
before:
beforeEach:
- script: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
displayName: 'Download Code Climate Test Reporter'
after:
afterEach:
- script: |
./cc-test-reporter before-build
yarn test 2> /dev/null

Loading…
Cancel
Save