From afd5851c6de944cc637e7de3410cf0f3adfdd6db Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 22 Feb 2019 00:14:24 +0800 Subject: Add test CI. --- azure-pipelines.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'azure-pipelines.yml') diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b67afdc2..c7c4047a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -24,6 +24,18 @@ steps: testRunner: VSTest testResultsFiles: '**/*.trx' +- script: yarn install + workingDirectory: Timeline/ClientApp + +- script: yarn run test --no-watch --browsers=ChromeHeadless --reporters junit + workingDirectory: Timeline/ClientApp + +- task: PublishTestResults@2 + condition: succeededOrFailed() + inputs: + testRunner: JUnit + testResultsFiles: '**/TESTS-*.xml' + - script: dotnet publish Timeline/Timeline.csproj --configuration $(buildConfiguration) --output ./publish/ - task: PublishPipelineArtifact@0 -- cgit v1.2.3