Skip to content

Commit

Permalink
Configure CI (no. 119)
Browse files Browse the repository at this point in the history
  • Loading branch information
cafour committed Jun 4, 2021
1 parent 9e103c1 commit 81f4468
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 16 deletions.
23 changes: 23 additions & 0 deletions .azure/pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,29 @@ jobs:
testResultsFiles: $(DOTVVM_ROOT)/artifacts/test/**/*.trx
failTaskOnFailedTests: true
buildConfiguration: $(BUILD_CONFIGURATION)
- job: testWindows
displayName: Run tests on Windows
pool: DockerAgents
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)"'
- task: Cache@2
inputs:
key: '"nuget" | "$(Agent.OS)" | **/*.csproj | **/packages.config'
path: $(DOTVVM_ROOT)/src/packages
- powershell: ./ci/windows/run.ps1
displayName: run.ps1
- task: PublishTestResults@2
inputs:
testResultsFormat: VSTest
testResultsFiles: $(DOTVVM_ROOT)/artifacts/test/**/*.trx
failTaskOnFailedTests: true
buildConfiguration: $(BUILD_CONFIGURATION)

# - job: owinBuild
# displayName: Build OWIN projects (Windows)
Expand Down
36 changes: 20 additions & 16 deletions ci/windows/run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,30 @@ if (-Not($?)) {
exit 1
}

# Import-Module IISAdministration -UseWindowsPowerShell
Copy-Item -Recurse `
$root\src\DotVVM.Samples.BasicSamples.Owin `
$root\artifacts

# icacls $root/artifacts/ /grant "IIS_IUSRS:(OI)(CI)F"
Import-Module IISAdministration -UseWindowsPowerShell

icacls $root/artifacts/ /grant "IIS_IUSRS:(OI)(CI)F"
New-IISSite -Name dotvvm.owin `
-PhysicalPath $root\artifacts\DotVVM.Samples.BasicSamples.Owin `
-BindingInformation "localhost:5407"
-BindingInformation "*:5407:"

# New-IISSite -Name dotvvm.owin.api `
# -PhysicalPath $root\artifacts\DotVVM.Samples.BasicSamples.Api.Owin `
# -BindingInformation "localhost:5002"
New-IISSite -Name dotvvm.owin.api `
-PhysicalPath $root\artifacts\DotVVM.Samples.BasicSamples.Api.Owin `
-BindingInformation "*:5002:"

# Copy-Item `
# $root\src\DotVVM.Samples.Tests\Profiles\seleniumconfig.owin.chrome.json `
# $root\src\DotVVM.Samples.Tests\seleniumconfig.json
Copy-Item `
$root\src\DotVVM.Samples.Tests\Profiles\seleniumconfig.owin.chrome.json `
$root\src\DotVVM.Samples.Tests\seleniumconfig.json

# dotnet test $root\src\DotVVM.Samples.Tests `
# --configuration $configuration `
# --logger trx `
# --results-directory $root\artifacts\test; `
# icm { Stop-Process -Name chrome; Stop-Process -Name chromedriver }
dotnet test $root\src\DotVVM.Samples.Tests `
--configuration $configuration `
--logger trx `
--results-directory $root\artifacts\test; `
icm { Stop-Process -Name chrome; Stop-Process -Name chromedriver }

# Remove-IISSite -Name dotvvm.owin
# Remove-IISSite -Name dotvvm.owin.api
Remove-IISSite -Force -Name dotvvm.owin
Remove-IISSite -Force -Name dotvvm.owin.api

0 comments on commit 81f4468

Please sign in to comment.