Skip to content

Commit

Permalink
Configure CI (no. 95)
Browse files Browse the repository at this point in the history
  • Loading branch information
cafour committed Apr 30, 2021
1 parent 0c97b3e commit 811f87d
Showing 1 changed file with 47 additions and 49 deletions.
96 changes: 47 additions & 49 deletions .azure/pipelines/ci.yml
Expand Up @@ -111,69 +111,67 @@ jobs:
# failTaskOnFailedTests: true
# buildConfiguration: $(BUILD_CONFIGURATION)

# - job: owinBuild
# displayName: Build OWIN projects (Windows)
# pool:
# name: AdamovoPool
# demands: Agent.OS -equals Windows_NT
# workspace:
# clean: all
# 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)
# msbuildArguments: >
# /p:DeployOnBuild=true
# /p:PublishProfile=$(Build.SourcesDirectory)/ci/windows/GenericPublish.pubxml
# - publish: $(DOTVVM_ROOT)/artifacts
# name: owinBuild
- job: owinBuild
displayName: Build OWIN projects (Windows)
pool:
name: AdamovoPool
demands: Agent.OS -equals Windows_NT
workspace:
clean: all
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)
msbuildArguments: >
/p:DeployOnBuild=true
/p:PublishProfile=$(Build.SourcesDirectory)/ci/windows/GenericPublish.pubxml
- publish: $(DOTVVM_ROOT)/artifacts
name: owinBuild

- job: uiTestsOwin
displayName: Run UI tests (Windows)
pool:
name: AdamovoPool
demands: Agent.OS -equals Windows_NT
container: docker-reg.riganti.cz/dotvvm-ci:windows
# dependsOn: owinBuild
dependsOn: owinBuild
workspace:
clean: all
steps:
# - download: current
# artifact: owinBuild
# - task: DownloadPipelineArtifact@2
# inputs:
# source: current
# artifact: owinBuild
# path: $(DOTVVM_ROOT)/artifacts
- task: DownloadPipelineArtifact@2
inputs:
source: specific
project: DotVVM Public
pipeline: CI
runVersion: specific
runId: '110502'
source: current
artifact: owinBuild
path: $(DOTVVM_ROOT)/artifacts
# - task: DownloadPipelineArtifact@2
# inputs:
# source: specific
# project: DotVVM Public
# pipeline: CI
# runVersion: specific
# runId: '110502'
# artifact: owinBuild
# path: $(DOTVVM_ROOT)/artifacts
- powershell: |
Copy-Item -Recurse `
$(DOTVVM_ROOT)/artifacts/DotVVM.Samples.BasicSamples.Owin `
Expand Down

0 comments on commit 811f87d

Please sign in to comment.