Skip to content

Commit

Permalink
Configure CI (no. 48)
Browse files Browse the repository at this point in the history
  • Loading branch information
cafour committed Apr 15, 2021
1 parent c321ea1 commit aba2193
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .azure/pipelines/ci.yml
Expand Up @@ -116,7 +116,7 @@ jobs:
workingDirectory: src/DotVVM.Framework
- task: Cache@2
inputs:
key: '"nuget-old" | "$(Agent.OS)" | **/packages.lock.json'
key: '"nuget" | "$(Agent.OS)" | **/packages.lock.json'
path: $(Build.SourcesDirectory)/src/packages
restoreKeys: '"nuget" | "$(Agent.OS)"'
- task: NuGetCommand@2
Expand All @@ -139,12 +139,12 @@ jobs:
steps:
- download: current
artifact: owinBuild
- script: mv $(Pipeline.Workspace)/crossplatformBuild $(DOTVVM_ROOT)/artifacts
- script: |
dotnet test src/DotVVM.Samples.Tests \
--no-build \
--configuration $(BUILD_CONFIGURATION) \
--logger trx \
- powershell: Move-Item $(Pipeline.Workspace)/owinBuild $(DOTVVM_ROOT)/artifacts
- powershell: |
dotnet test src/DotVVM.Samples.Tests `
--no-build `
--configuration $(BUILD_CONFIGURATION) `
--logger trx `
--results-directory $(Agent.TempDirectory)
continueOnError: true
- task: PublishTestResults@2
Expand Down
10 changes: 10 additions & 0 deletions ci/windows/Dockerfile
@@ -1,4 +1,6 @@
# escape=`
FROM mcr.microsoft.com/dotnet/sdk:3.1 as dotnet-installer

FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019

RUN Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')
Expand All @@ -7,4 +9,12 @@ RUN scoop install git; `
scoop bucket add extras; `
scoop install chromium chromedriver

COPY --from=dotnet-installer ["/Program Files/dotnet", "/Program Files/dotnet"]

USER ContainerAdministrator
RUN setx /M PATH \"${env:PATH};C:\Program Files\dotnet\"
USER ContainerUser

RUN dotnet help

ENTRYPOINT []

0 comments on commit aba2193

Please sign in to comment.