diff options
author | 杨宇千 <crupest@outlook.com> | 2019-07-29 20:38:31 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-07-29 20:38:31 +0800 |
commit | e21ef1ac89c799ded14fce8f4f319b0e5ac7ab81 (patch) | |
tree | 4ea9ccaabc9eb1c6221eed27e1d9dba760092bae /azure-pipelines.yml | |
parent | 215f61fab73431218d566e80408e96684f6270c6 (diff) | |
download | timeline-e21ef1ac89c799ded14fce8f4f319b0e5ac7ab81.tar.gz timeline-e21ef1ac89c799ded14fce8f4f319b0e5ac7ab81.tar.bz2 timeline-e21ef1ac89c799ded14fce8f4f319b0e5ac7ab81.zip |
Separate build and release CI.
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r-- | azure-pipelines.yml | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index b27b3112..00000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,51 +0,0 @@ -trigger:
-- master
-
-variables:
- buildConfiguration: 'Release'
- 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'
-
- - script: dotnet publish Timeline/Timeline.csproj --configuration $(buildConfiguration) --no-restore --output ./publish/
- displayName: Dotnet Publish
-
- - task: PublishPipelineArtifact@0
- inputs:
- artifactName: 'timeline'
- targetPath: Timeline/publish
-
-- stage: Deploy
- jobs:
- - deployment: Deploy
- pool:
- name: 'Default'
- environment: 'timeline-server'
- strategy:
- runOnce:
- deploy:
- steps:
- - script: |
- rm -rf /var/timeline/*
- cp -r $PIPELINE_WORKSPACE/timeline/. /var/timeline/
- sudo systemctl restart timeline.service
- displayName: 'Command Line Script'
- failOnStderr: true
|