aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-07-29 20:38:31 +0800
committer杨宇千 <crupest@outlook.com>2019-07-29 20:38:31 +0800
commite21ef1ac89c799ded14fce8f4f319b0e5ac7ab81 (patch)
tree4ea9ccaabc9eb1c6221eed27e1d9dba760092bae
parent215f61fab73431218d566e80408e96684f6270c6 (diff)
downloadtimeline-e21ef1ac89c799ded14fce8f4f319b0e5ac7ab81.tar.gz
timeline-e21ef1ac89c799ded14fce8f4f319b0e5ac7ab81.tar.bz2
timeline-e21ef1ac89c799ded14fce8f4f319b0e5ac7ab81.zip
Separate build and release CI.
-rw-r--r--CI/build-pipeline.yml24
-rw-r--r--CI/release-pipeline.yml (renamed from azure-pipelines.yml)4
2 files changed, 27 insertions, 1 deletions
diff --git a/CI/build-pipeline.yml b/CI/build-pipeline.yml
new file mode 100644
index 00000000..33a75a95
--- /dev/null
+++ b/CI/build-pipeline.yml
@@ -0,0 +1,24 @@
+variables:
+ buildConfiguration: 'Debug'
+ ASPNETCORE_ENVIRONMENT: 'Development'
+stages:
+- stage: Build
+ jobs:
+ - job: Build
+ pool:
+ vmImage: 'Ubuntu-16.04'
+ steps:
+ - script: |
+ dotnet restore Timeline/Timeline.csproj --configfile nuget.config
+ dotnet restore Timeline.Tests/Timeline.Tests.csproj --configfile nuget.config
+ displayName: Dotnet Restore
+
+ - script: dotnet test Timeline.Tests/Timeline.Tests.csproj --configuration $(buildConfiguration) --no-restore --logger trx
+ displayName: Dotnet Test
+
+ - task: PublishTestResults@2
+ condition: succeededOrFailed()
+ inputs:
+ testRunner: VSTest
+ testResultsFiles: '**/*.trx'
+
diff --git a/azure-pipelines.yml b/CI/release-pipeline.yml
index b27b3112..f2b94224 100644
--- a/azure-pipelines.yml
+++ b/CI/release-pipeline.yml
@@ -1,9 +1,11 @@
trigger:
- master
+pr: none
+
variables:
buildConfiguration: 'Release'
- ASPNETCORE_ENVIRONMENT: 'Development'
+ ASPNETCORE_ENVIRONMENT: 'Production'
stages:
- stage: Build
jobs: