diff options
author | 杨宇千 <crupest@outlook.com> | 2019-07-29 21:51:32 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-07-29 21:51:32 +0800 |
commit | 85d25348c9d6ad527b86c57fd5023829c8b9d6bf (patch) | |
tree | 938396a1e30c7850aa1a4174116c1d53c29e7f66 | |
parent | 3d49a3efb0b72b4363844991962f563d4514e769 (diff) | |
download | timeline-85d25348c9d6ad527b86c57fd5023829c8b9d6bf.tar.gz timeline-85d25348c9d6ad527b86c57fd5023829c8b9d6bf.tar.bz2 timeline-85d25348c9d6ad527b86c57fd5023829c8b9d6bf.zip |
Update CI. Remove unused settings.
-rw-r--r-- | CI/build-pipeline.yml | 33 | ||||
-rw-r--r-- | CI/release-pipeline.yml | 6 | ||||
-rw-r--r-- | Timeline/appsettings.json | 6 |
3 files changed, 18 insertions, 27 deletions
diff --git a/CI/build-pipeline.yml b/CI/build-pipeline.yml index 31b587b0..c515f181 100644 --- a/CI/build-pipeline.yml +++ b/CI/build-pipeline.yml @@ -4,24 +4,21 @@ trigger: 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
+pool:
+ vmImage: 'Ubuntu-16.04'
- - task: PublishTestResults@2
- condition: succeededOrFailed()
- inputs:
- testRunner: VSTest
- testResultsFiles: '**/*.trx'
+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/CI/release-pipeline.yml b/CI/release-pipeline.yml index f2b94224..f3434a36 100644 --- a/CI/release-pipeline.yml +++ b/CI/release-pipeline.yml @@ -3,11 +3,11 @@ trigger: pr: none
-variables:
- buildConfiguration: 'Release'
- ASPNETCORE_ENVIRONMENT: 'Production'
stages:
- stage: Build
+ variables:
+ buildConfiguration: 'Release'
+ ASPNETCORE_ENVIRONMENT: 'Development'
jobs:
- job: Build
pool:
diff --git a/Timeline/appsettings.json b/Timeline/appsettings.json index 81f83d68..94986fbb 100644 --- a/Timeline/appsettings.json +++ b/Timeline/appsettings.json @@ -7,11 +7,5 @@ "JwtConfig": { "Issuer": "api.crupest.xyz", "Audience": "api.crupest.xyz" - }, - "TodoPageConfig": { - "GithubInfo": { - "Owner": "crupest", - "Repository": "Timeline" - } } } |