ci: use beforeEach and afterEach hooks

master
Futago-za Ryuu 5 years ago
parent 05c6fc9a34
commit b1350d46f8

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

Loading…
Cancel
Save