Skip to content

Commit

Permalink
Configure CI (no. 17)
Browse files Browse the repository at this point in the history
  • Loading branch information
cafour committed Apr 12, 2021
1 parent 3a5de11 commit df95530
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions .azure/pipelines/ci.yml
Expand Up @@ -16,12 +16,30 @@ jobs:
- job: crossplatformBuild
container: registry.gitlab.com/cafstep/dotvvm-test/dotvvm: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
- script: dotnet restore --packages $(DOTVVM_ROOT)/.nuget src/Crossplatform.sln
- script: dotnet build --no-restore --configuration $(BUILD_CONFIGURATION) src/Crossplatform.sln
- task: Cache@2
inputs:
key: '"nuget" | "$(Agent.OS)" | **/packages.lock.json'
path: $(DOTVVM_ROOT)/.npm
restoreKeys: '"nuget" | "$(Agent.OS)"'
- task: DotNetCoreCLI@2
inputs:
command: restore
projects: src/Crossplatform.sln
packagesDirectory: $(DOTVVM_ROOT)/.nuget
- task: DotNetCoreCLI@2
inputs:
command: build
projects: src/Crossplatform.sln
arguments: --no-restore --configuration $(BUILD_CONFIGURATION)
- publish: artifacts/
name: crossplatformBuild

Expand All @@ -32,6 +50,16 @@ jobs:
- download: current
artifact: crossplatformBuild
- script: mv $(Pipeline.Workspace)/crossplatformBuild $(DOTVVM_ROOT)/artifacts
- task: Cache@2
inputs:
key: '"nuget" | "$(Agent.OS)" | **/packages.lock.json'
path: $(DOTVVM_ROOT)/.npm
restoreKeys: '"nuget" | "$(Agent.OS)"'
- task: DotNetCoreCLI@2
inputs:
command: restore
projects: src/DotVVM.Framework.Tests.Common
packagesDirectory: $(DOTVVM_ROOT)/.nuget
- task: DotNetCoreCLI@2
inputs:
command: test
Expand All @@ -52,6 +80,11 @@ jobs:
--no-build \
--configuration Release \
--urls http://localhost:16018/ &
- task: DotNetCoreCLI@2
inputs:
command: restore
projects: src/DotVVM.Samples.Tests
packagesDirectory: $(DOTVVM_ROOT)/.nuget
- task: DotNetCoreCLI@2
inputs:
command: test
Expand Down

0 comments on commit df95530

Please sign in to comment.