From 0259640d3cf4e18aef16df9cb0c26240b9774c4a Mon Sep 17 00:00:00 2001 From: Futago-za Ryuu Date: Sun, 27 Jan 2019 11:19:08 +0000 Subject: [PATCH] Pipelines: Add test script hooks for CC --- azure-pipelines.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 40def95..a8035d1 100644 --- a/azure-pipelines.yml +++ b/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)'