diff options
author | crupest <crupest@outlook.com> | 2019-04-13 13:03:18 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-04-13 13:03:18 +0800 |
commit | fac5006e7eaf7f7bc23e92a2b3059d4f1b37fa07 (patch) | |
tree | 39cf181a18a3dc443dbab5669a04d0a23cdefd00 /azure-pipelines.yml | |
parent | 8c5e7069d2651fb6fae641dfe482d7a0910b3fd1 (diff) | |
download | timeline-fac5006e7eaf7f7bc23e92a2b3059d4f1b37fa07.tar.gz timeline-fac5006e7eaf7f7bc23e92a2b3059d4f1b37fa07.tar.bz2 timeline-fac5006e7eaf7f7bc23e92a2b3059d4f1b37fa07.zip |
Init separate.
Diffstat (limited to 'azure-pipelines.yml')
-rw-r--r-- | azure-pipelines.yml | 40 |
1 files changed, 4 insertions, 36 deletions
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 17087351..7d6bf4cb 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -7,46 +7,18 @@ trigger: - master variables: - ArtifactFeed: NodeModules buildConfiguration: 'Release' ASPNETCORE_ENVIRONMENT: 'Development' pool: vmImage: 'Ubuntu-16.04' steps: -- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1 - inputs: - keyfile: '**/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock' - targetfolder: '**/node_modules, !**/node_modules/**/node_modules' - vstsFeed: '$(ArtifactFeed)' - -- script: yarn install --non-interactive - condition: ne(variables['CacheRestored'], 'true') - workingDirectory: Timeline/ClientApp - displayName: Yarn Install - -- task: 1ESLighthouseEng.PipelineArtifactCaching.SaveCacheV1.SaveCache@1 - inputs: - keyfile: '**/yarn.lock, !**/node_modules/**/yarn.lock, !**/.*/**/yarn.lock' - targetfolder: '**/node_modules, !**/node_modules/**/node_modules' - vstsFeed: '$(ArtifactFeed)' - -- script: yarn run test --no-watch --browsers=ChromeHeadless --reporters junit - workingDirectory: Timeline/ClientApp - displayName: Angular Test - -- task: PublishTestResults@2 - condition: succeededOrFailed() - inputs: - testRunner: JUnit - testResultsFiles: '**/TESTS-*.xml' - - script: | - dotnet restore Timeline/Timeline-CI.csproj --configfile nuget.config - dotnet restore Timeline.Tests/Timeline.Tests-CI.csproj --configfile nuget.config + 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-CI.csproj --configuration $(buildConfiguration) --no-restore --logger trx +- script: dotnet test Timeline.Tests/Timeline.Tests.csproj --configuration $(buildConfiguration) --no-restore --logger trx displayName: Dotnet Test - task: PublishTestResults@2 @@ -55,11 +27,7 @@ steps: testRunner: VSTest testResultsFiles: '**/*.trx' -- script: yarn build --prod - workingDirectory: Timeline/ClientApp - displayName: Client App Build - -- script: dotnet publish Timeline/Timeline-CI.csproj --configuration $(buildConfiguration) --no-restore --output ./publish/ +- script: dotnet publish Timeline/Timeline.csproj --configuration $(buildConfiguration) --no-restore --output ./publish/ displayName: Dotnet Publish - task: PublishPipelineArtifact@0 |