Merge pull request #2004 from coolo/add_pkglistgen_python3

Move to python3 containers for testing
This commit is contained in:
Stephan Kulow 2019-05-12 20:34:20 +02:00 committed by GitHub
commit 4ef0c6230d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 1763 additions and 0 deletions

View File

@ -0,0 +1,74 @@
format_version: 3
pipelines:
Pkglistgen.openSUSE_Factory:
group: Factory.pkglistgen
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
timer:
spec: 0 40 * ? * *
only_on_changes: false
materials:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
stages:
- pkglistgen:
approval:
type: manual
jobs:
openSUSE_Factory_target:
resources:
- repo-checker3
tasks:
- script: python3 /usr/bin/osrt-pkglistgen -d -A https://api.opensuse.org update_and_solve -p openSUSE:Factory -s target
openSUSE_Factory_rings:
resources:
- repo-checker3
tasks:
- script: python3 /usr/bin/osrt-pkglistgen -d -A https://api.opensuse.org update_and_solve -p openSUSE:Factory -s rings
openSUSE_Factory_ARM:
resources:
- repo-checker3
tasks:
- script: python3 /usr/bin/osrt-pkglistgen -d -A https://api.opensuse.org update_and_solve -p openSUSE:Factory:ARM
openSUSE_Factory_PowerPC:
resources:
- repo-checker3
tasks:
- script: python3 /usr/bin/osrt-pkglistgen -d -A https://api.opensuse.org update_and_solve -p openSUSE:Factory:PowerPC
openSUSE_Factory_zSystems:
resources:
- repo-checker3
tasks:
- script: python3 /usr/bin/osrt-pkglistgen -d -A https://api.opensuse.org update_and_solve -p openSUSE:Factory:zSystems
Update.Repos.Factory:
group: Factory.pkglistgen
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
timer:
spec: 0 0 21 ? * *
only_on_changes: false
materials:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
stages:
- Update:
approval:
type: manual
jobs:
openSUSE_Factory:
resources:
- repo-checker3
tasks:
- script: python3 /usr/bin/osrt-pkglistgen --apiurl https://api.opensuse.org handle_update_repos openSUSE:Factory
openSUSE_Factory_ARM:
resources:
- repo-checker3
tasks:
- script: python3 /usr/bin/osrt-pkglistgen --apiurl https://api.opensuse.org handle_update_repos openSUSE:Factory:ARM
openSUSE_Factory_PowerPC:
resources:
- repo-checker3
tasks:
- script: python3 /usr/bin/osrt-pkglistgen --apiurl https://api.opensuse.org handle_update_repos openSUSE:Factory:PowerPC

View File

@ -0,0 +1,55 @@
format_version: 3
pipelines:
Pkglistgen.openSUSE_Factory:
group: Factory.pkglistgen
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
timer:
spec: 0 40 * ? * *
only_on_changes: false
materials:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
stages:
- pkglistgen:
approval:
type: manual
jobs:
<% ['openSUSE:Factory/target', 'openSUSE:Factory/rings', 'openSUSE:Factory:ARM', 'openSUSE:Factory:PowerPC', 'openSUSE:Factory:zSystems'].each do |project|
project=project.split('/')
name=project[0].gsub(':', '_')
if project.size > 1
options="-s #{project[1]}"
name = name + "_#{project[1]}"
end
-%>
<%= name %>:
resources:
- repo-checker3
tasks:
- script: python3 /usr/bin/osrt-pkglistgen -d -A https://api.opensuse.org update_and_solve -p <%= project[0] %> <%= options %>
<% end -%>
Update.Repos.Factory:
group: Factory.pkglistgen
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
timer:
spec: 0 0 21 ? * *
only_on_changes: false
materials:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
stages:
- Update:
approval:
type: manual
jobs:
<% %w(openSUSE:Factory openSUSE:Factory:ARM openSUSE:Factory:PowerPC).each do |project| -%>
<%= project.gsub(':', '_') %>:
resources:
- repo-checker3
tasks:
- script: python3 /usr/bin/osrt-pkglistgen --apiurl https://api.opensuse.org handle_update_repos <%= project %>
<% end -%>

View File

@ -0,0 +1,63 @@
format_version: 3
pipelines:
Pkglistgen.openSUSE_Leap:
group: Leap.15.1.pkglistgen
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
timer:
spec: 0 10 * ? * *
only_on_changes: false
materials:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
stages:
- pkglistgen:
approval:
type: manual
jobs:
openSUSE_Leap_15.1:
resources:
- repo-checker
tasks:
- script: python3 /usr/bin/osrt-pkglistgen -d -A https://api.opensuse.org update_and_solve -p openSUSE:Leap:15.1 -s target
openSUSE_Leap_15.1_Ring:
resources:
- repo-checker
tasks:
- script: python3 /usr/bin/osrt-pkglistgen -d -A https://api.opensuse.org update_and_solve -p openSUSE:Leap:15.1 -s rings
openSUSE_Leap_15.1_ARM:
resources:
- repo-checker
tasks:
- script: python3 /usr/bin/osrt-pkglistgen -d -A https://api.opensuse.org update_and_solve -p openSUSE:Leap:15.1:ARM
openSUSE_Leap_15.1_PowerPC:
resources:
- repo-checker
tasks:
- script: python3 /usr/bin/osrt-pkglistgen -d -A https://api.opensuse.org update_and_solve -p openSUSE:Leap:15.1:PowerPC
Update.Repos.Leap:
group: Leap.15.1.pkglistgen
lock_behavior: unlockWhenFinished
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
timer:
spec: 0 0 21 ? * *
only_on_changes: false
materials:
git:
git: https://github.com/openSUSE/openSUSE-release-tools.git
stages:
- Update:
approval:
type: manual
jobs:
Leap:
tasks:
- script: python3 /usr/bin/osrt-pkglistgen --apiurl https://api.opensuse.org handle_update_repos openSUSE:Leap:15.1
Leap_ARM:
tasks:
- script: python3 /usr/bin/osrt-pkglistgen --apiurl https://api.opensuse.org handle_update_repos openSUSE:Leap:15.1:ARM
Leap_PowerPC:
tasks:
- script: python3 /usr/bin/osrt-pkglistgen --apiurl https://api.opensuse.org handle_update_repos openSUSE:Leap:15.1:PowerPC

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,168 @@
format_version: 3
pipelines:
Factory.Stagings.RelPkgs:
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Factory.pkglistgen
lock_behavior: unlockWhenFinished
timer:
spec: 0 */10 * ? * *
only_on_changes: false
materials:
scripts:
git: https://github.com/openSUSE/openSUSE-release-tools.git
stages:
- Generate.Release.Package:
approval: manual
jobs:
<% factory_stagings = %w(A B C D E F G H I J K L M N O Gcc7) -%>
<% factory_stagings.each do |letter| -%>
"Staging.<%= letter %>":
resources:
- repo-checker3
tasks:
- script: python3 /usr/bin/osrt-pkglistgen -A https://api.opensuse.org update_and_solve
--staging openSUSE:Factory:Staging:<%= letter %>
--only-release-packages --force
<% end -%>
<% factory_stagings.each do |letter| %>
"Factory.Staging.<%= letter %>":
environment_variables:
STAGING_PROJECT: openSUSE:Factory:Staging:<%= letter %>
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
PYTHONPATH: /usr/share/openSUSE-release-tools
group: Factory.pkglistgen
lock_behavior: unlockWhenFinished
materials:
stagings:
git: git://botmaster.suse.de/opensuse-repos.git
auto_update: true
destination: repos
whitelist:
- openSUSE:Factory:Staging:<%= letter %>_-_standard.yaml
scripts:
git: https://github.com/openSUSE/openSUSE-release-tools.git
auto_update: true
destination: scripts
whitelist:
- DO_NOT_TRIGGER
citest:
git: https://github.com/coolo/citest.git
auto_update: true
destination: citest
whitelist:
- DO_NOT_TRIGGER
stages:
- Checks:
jobs:
Check.Build.Succeeds:
resources:
- staging-bot
tasks:
- script: |-
python ./citest/verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard
Repo.Checker:
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-repo-checker
resources:
- repo-checker3
tasks:
- script: |-
python3 ./scripts/staging-installcheck.py -A $STAGING_API -p openSUSE:Factory -s $STAGING_PROJECT
- Update.000product:
resources:
- repo-checker3
tasks:
- script: |-
python3 /usr/bin/osrt-pkglistgen --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force
- Enable.images.repo:
resources:
- staging-bot
tasks:
- script: |-
osc -A $STAGING_API api -X POST "/source/$STAGING_PROJECT?cmd=remove_flag&repository=images&flag=build"
<% end %>
Leap.Stagings.RelPkgs:
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-staging-bot
group: Leap.15.1.pkglistgen
lock_behavior: unlockWhenFinished
timer:
spec: 0 */10 * ? * *
only_on_changes: false
materials:
scripts:
git: https://github.com/openSUSE/openSUSE-release-tools.git
stages:
- Generate.Release.Package:
approval: manual
jobs:
<% leap_stagings = %w(A B C D E) -%>
<% leap_stagings.each do |letter| -%>
"Staging.<%= letter %>":
resources:
- repo-checker3
tasks:
- script: python3 /usr/bin/osrt-pkglistgen -A https://api.opensuse.org update_and_solve
--staging openSUSE:Leap:15.1:Staging:<%= letter %>
--only-release-packages --force
<% end %>
<% leap_stagings.each do |letter| -%>
"Leap.Staging.<%= letter %>":
environment_variables:
STAGING_PROJECT: openSUSE:Leap:15.1:Staging:<%= letter %>
STAGING_API: https://api.opensuse.org
OSC_CONFIG: /home/go/config/oscrc-staging-bot
PYTHONPATH: /usr/share/openSUSE-release-tools
group: Leap.15.1.pkglistgen
lock_behavior: unlockWhenFinished
materials:
stagings:
git: git://botmaster.suse.de/opensuse-repos.git
auto_update: true
destination: repos
whitelist:
- openSUSE:Leap:15.1:Staging:<%= letter %>_-_standard.yaml
scripts:
git: https://github.com/openSUSE/openSUSE-release-tools.git
auto_update: true
destination: scripts
whitelist:
- DO_NOT_TRIGGER
citest:
git: https://github.com/coolo/citest.git
auto_update: true
destination: citest
whitelist:
- DO_NOT_TRIGGER
stages:
- Checks:
jobs:
Check.Build.Succeeds:
resources:
- staging-bot
tasks:
- script: |-
python ./citest/verify-repo-built-successful.py -A $STAGING_API -p $STAGING_PROJECT -r standard
Repo.Checker:
environment_variables:
OSC_CONFIG: /home/go/config/oscrc-repo-checker
resources:
- repo-checker3
tasks:
- script: |-
python3 ./scripts/staging-installcheck.py -A $STAGING_API -p openSUSE:Leap:15.1 -s $STAGING_PROJECT
- Update.000product:
resources:
- repo-checker3
tasks:
- script: |-
python3 /usr/bin/osrt-pkglistgen --debug -A $STAGING_API update_and_solve --staging $STAGING_PROJECT --force
<% end %>