mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
gitlab-ci: add Windows job
This commit is contained in:
parent
1300771bad
commit
fc989d94b3
1 changed files with 42 additions and 0 deletions
|
|
@ -434,6 +434,48 @@ Build documentation:
|
||||||
- docs/build/html/
|
- docs/build/html/
|
||||||
|
|
||||||
|
|
||||||
|
Windows:
|
||||||
|
tags:
|
||||||
|
- windows
|
||||||
|
script:
|
||||||
|
- Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
||||||
|
- choco install --no-progress -y git --force --params "/GitAndUnixToolsOnPath"
|
||||||
|
- choco install --no-progress -y python3
|
||||||
|
- choco install --no-progress -y jdk8
|
||||||
|
- choco install --no-progress -y rsync
|
||||||
|
- refreshenv
|
||||||
|
- python -m pip install --upgrade babel pip setuptools
|
||||||
|
- python -m pip install -e .
|
||||||
|
|
||||||
|
- $files = @(Get-ChildItem tests\*.TestCase)
|
||||||
|
- foreach ($f in $files) {
|
||||||
|
write-output $f;
|
||||||
|
python $f;
|
||||||
|
if( $LASTEXITCODE -eq 0 ) {
|
||||||
|
write-output "SUCCESS $f";
|
||||||
|
} else {
|
||||||
|
write-output "ERROR $f failed";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# these are the tests that must pass
|
||||||
|
- python tests\checkupdates.TestCase
|
||||||
|
- python tests\exception.TestCase
|
||||||
|
- python tests\import.TestCase
|
||||||
|
- python tests\init.TestCase
|
||||||
|
- python tests\lint.TestCase
|
||||||
|
- python tests\main.TestCase
|
||||||
|
- python tests\metadata.TestCase
|
||||||
|
- python tests\rewritemeta.TestCase
|
||||||
|
- python tests\vcs.TestCase
|
||||||
|
after_script:
|
||||||
|
- Copy-Item C:\ProgramData\chocolatey\logs\chocolatey.log
|
||||||
|
artifacts:
|
||||||
|
when: always
|
||||||
|
paths:
|
||||||
|
- "*.log"
|
||||||
|
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue