Skip to content

Commit

Permalink
Configure CI (no. 76)
Browse files Browse the repository at this point in the history
  • Loading branch information
cafour committed Apr 16, 2021
1 parent 75ca912 commit 2245225
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions .azure/pipelines/ci.yml
Expand Up @@ -101,36 +101,36 @@ jobs:
failTaskOnFailedTests: true
buildConfiguration: $(BUILD_CONFIGURATION)

- job: owinBuild
displayName: Build OWIN projects (Windows)
pool:
name: AdamovoPool
steps:
- task: Cache@2
inputs:
key: '"npm" | "$(Agent.OS)" | src/DotVVM.Framework/package.json'
path: $(DOTVVM_ROOT)/.npm
restoreKeys: '"npm" | "$(Agent.OS)"'
- script: npm ci --cache $(DOTVVM_ROOT)/.npm --prefer-offline
workingDirectory: src/DotVVM.Framework
- script: npm run build
workingDirectory: src/DotVVM.Framework
- task: Cache@2
inputs:
key: '"nuget-owin" | "$(Agent.OS)" | **/packages.lock.json'
path: $(Build.SourcesDirectory)/src/packages
- task: NuGetCommand@2
inputs:
command: restore
restoreSolution: src/Windows.sln
feedsToUse: config
nugetConfigPath: src/NuGet.config
- task: MSBuild@1
inputs:
solution: src/Windows.sln
configuration: $(BUILD_CONFIGURATION)
- publish: $(DOTVVM_ROOT)/artifacts
name: owinBuild
# - job: owinBuild
# displayName: Build OWIN projects (Windows)
# pool:
# vmImage: windows-latest
# steps:
# - task: Cache@2
# inputs:
# key: '"npm" | "$(Agent.OS)" | src/DotVVM.Framework/package.json'
# path: $(DOTVVM_ROOT)/.npm
# restoreKeys: '"npm" | "$(Agent.OS)"'
# - script: npm ci --cache $(DOTVVM_ROOT)/.npm --prefer-offline
# workingDirectory: src/DotVVM.Framework
# - script: npm run build
# workingDirectory: src/DotVVM.Framework
# - task: Cache@2
# inputs:
# key: '"nuget-owin" | "$(Agent.OS)" | **/packages.lock.json'
# path: $(Build.SourcesDirectory)/src/packages
# - task: NuGetCommand@2
# inputs:
# command: restore
# restoreSolution: src/Windows.sln
# feedsToUse: config
# nugetConfigPath: src/NuGet.config
# - task: MSBuild@1
# inputs:
# solution: src/Windows.sln
# configuration: $(BUILD_CONFIGURATION)
# - publish: $(DOTVVM_ROOT)/artifacts
# name: owinBuild

- job: uiTestsOwin
displayName: Run UI tests (Windows)
Expand All @@ -151,6 +151,7 @@ jobs:
runId: '110124'
artifact: 'owinBuild'
path: $(DOTVVM_ROOT)/artifacts
- powershell: Write-Host "Test"
- powershell: |
dotnet test src/DotVVM.Samples.Tests `
--no-build `
Expand Down

0 comments on commit 2245225

Please sign in to comment.