format_version: 3
pipelines:
<% for project in %w(
      openSUSE:Factory
      openSUSE:Factory:ARM
      openSUSE:Factory:LegacyX86
      openSUSE:Factory:PowerPC
      openSUSE:Factory:RISCV
      openSUSE:Factory:zSystems
      openSUSE:Leap:15.5:Images
      openSUSE:Leap:15.5:ARM
      openSUSE:Leap:15.5:ARM:Images
      openSUSE:Leap:15.6:Images
      openSUSE:Leap:15.6:ARM
      openSUSE:Leap:15.6:ARM:Images
      openSUSE:Leap:16.0
      openSUSE:Leap:Micro:6.0
      openSUSE:Leap:Micro:6.0:Images
      openSUSE:Leap:Micro:6.1
  ) -%>
  TTM.<%= project.gsub('openSUSE:', '').gsub(':', '_') %>:
    group: openSUSE.Checkers
    lock_behavior: unlockWhenFinished
    environment_variables:
      OSC_CONFIG: /home/go/config/oscrc-totest-manager
    materials:
      script:
        git: https://github.com/openSUSE/openSUSE-release-tools.git
        destination: scripts
    timer:
      spec: 0 */15 * ? * *
      only_on_changes: false
    stages:
    - Run:
        approval: manual
        resources:
        - staging-bot
        tasks:
        - script: |-
            install -D /home/go/config/openqa-client.conf /home/go/.config/openqa/client.conf
            scripts/totest-manager.py -A https://api.opensuse.org --debug run <%= project %>
<% end -%>
