diff --git a/.azure/pipelines/ci.yml b/.azure/pipelines/ci.yml index 7fb745e8b3..8bb033a15d 100644 --- a/.azure/pipelines/ci.yml +++ b/.azure/pipelines/ci.yml @@ -7,6 +7,10 @@ pool: variables: DOTVVM_ROOT: $(Build.Repository.LocalPath) BUILD_CONFIGURATION: Release + DISPLAY: :42 + DOTNET_NOLOGO: 1 + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 + DOTNET_CLI_TELEMETRY_OPTOUT: 1 jobs: - job: crossplatformBuild @@ -32,6 +36,25 @@ jobs: inputs: command: test projects: src/DotVVM.Framework.Tests.Common - arguments: --configuration $(BUILD_CONFIGURATION) - noBuild: true + arguments: --no-build --configuration $(BUILD_CONFIGURATION) + publishTestResults: true + + - job: uiTestsCrossplatform + container: registry.gitlab.com/cafstep/dotvvm-test/dotvvm:latest + dependsOn: crossplatformBuild + steps: + - download: current + artifact: crossplatformBuild + - script: mv $(Pipeline.Workspace)/crossplatformBuild $(DOTVVM_ROOT)/artifacts + - script: Xvfb $DISPLAY -screen 0 800x600x16 & + - script: | + dotnet run --project $DOTVVM_ROOT/src/DotVVM.Samples.BasicSamples.AspNetCoreLatest \ + --no-build \ + --configuration Release \ + --urls http://localhost:16018/ & + - task: DotNetCoreCLI@2 + inputs: + command: test + projects: src/DotVVM.Samples.Tests + arguments: --no-build --configuration $(BUILD_CONFIGURATION) publishTestResults: true