aboutsummaryrefslogtreecommitdiff
path: root/azure-pipelines.yml
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2019-02-22 00:14:24 +0800
committercrupest <crupest@outlook.com>2019-02-22 00:14:24 +0800
commitafd5851c6de944cc637e7de3410cf0f3adfdd6db (patch)
treef0302a26f012ef9c1c9ba454e1696f9200233e39 /azure-pipelines.yml
parentb694d7a3e1b04bb942e5ba8224762d706f98a371 (diff)
downloadtimeline-afd5851c6de944cc637e7de3410cf0f3adfdd6db.tar.gz
timeline-afd5851c6de944cc637e7de3410cf0f3adfdd6db.tar.bz2
timeline-afd5851c6de944cc637e7de3410cf0f3adfdd6db.zip
Add test CI.
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r--azure-pipelines.yml12
1 files changed, 12 insertions, 0 deletions
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