Add PyTest specific pipelines

This commit is contained in:
Pedro Algarvio 2020-04-27 20:10:21 +01:00 committed by Daniel Wozniak
parent 9cfa0503d7
commit 1bd5aebf92
25 changed files with 452 additions and 0 deletions

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'amazon',
distro_version: '2',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: true,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,16 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'arch',
distro_version: 'lts',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq',
nox_passthrough_opts: '',
python_version: 'py3',
testrun_timeout: 6,
use_spot_instances: true)
// vim: ft=groovy

View file

@ -0,0 +1,17 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 0, // Don't cancel builds still running. Wait until they end.
distro_name: 'centos',
distro_version: '7',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
kitchen_platforms_file: '/var/jenkins/workspace/nox-cloud-platforms.yml',
nox_env_name: 'pytest-cloud',
nox_passthrough_opts: '',
python_version: 'py3',
testrun_timeout: 6,
use_spot_instances: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'centos',
distro_version: '7',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq-m2crypto',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: true,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,16 @@
@Library('salt@master-1.7') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'centos',
distro_version: '7',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq-pycryptodome',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
testrun_timeout: 6,
use_spot_instances: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'centos',
distro_version: '7',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq-pycryptodome',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: true,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'centos',
distro_version: '7',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: true,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'centos',
distro_version: '7',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-tcp',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: true,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'centos',
distro_version: '8',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: true,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'debian',
distro_version: '10',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: true,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'debian',
distro_version: '9',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: true,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'fedora',
distro_version: '30',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: true,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'fedora',
distro_version: '31',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: true,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,21 @@
@Library('salt@master-1.7-staged') _
// Pre-nox pipeline
runTestSuite(
concurrent_builds: 2,
distro_name: 'macosx',
distro_version: 'highsierra',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave-mac',
kitchen_platforms_file: '/var/jenkins/workspace/pre-golden-nox-platforms.yml',
kitchen_verifier_file: '/var/jenkins/workspace/nox-verifier.yml',
nox_env_name: 'pytest-zeromq',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: false,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,21 @@
@Library('salt@master-1.7-staged') _
// Pre-nox pipeline
runTestSuite(
concurrent_builds: 2,
distro_name: 'macosx',
distro_version: 'mojave',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave-mac',
kitchen_platforms_file: '/var/jenkins/workspace/pre-golden-nox-platforms.yml',
kitchen_verifier_file: '/var/jenkins/workspace/nox-verifier.yml',
nox_env_name: 'pytest-zeromq',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: false,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,21 @@
@Library('salt@master-1.7-staged') _
// Pre-nox pipeline
runTestSuite(
concurrent_builds: 2,
distro_name: 'macosx',
distro_version: 'sierra',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave-mac',
kitchen_platforms_file: '/var/jenkins/workspace/pre-golden-nox-platforms.yml',
kitchen_verifier_file: '/var/jenkins/workspace/nox-verifier.yml',
nox_env_name: 'pytest-zeromq',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: false,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'opensuse',
distro_version: '15',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: true,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'ubuntu',
distro_version: '1604',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq-m2crypto',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: true,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,16 @@
@Library('salt@master-1.7') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'ubuntu',
distro_version: '1604',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq-pycryptodome',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
testrun_timeout: 6,
use_spot_instances: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'ubuntu',
distro_version: '1604',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq-pycryptodome',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: true,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'ubuntu',
distro_version: '1604',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: true,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'ubuntu',
distro_version: '1604',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-tcp',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: true,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'ubuntu',
distro_version: '1804',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq',
nox_passthrough_opts: '--ssh-tests',
python_version: 'py3',
//splits: ['unit', 'integration', 'multimaster'],
testrun_timeout: 6,
use_spot_instances: true,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'windows',
distro_version: '2016',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq',
nox_passthrough_opts: '',
python_version: 'py3',
//splits: ['unit', 'integration'],
testrun_timeout: 9,
use_spot_instances: false,
fast_slow_staged_testrun: true)
// vim: ft=groovy

View file

@ -0,0 +1,18 @@
@Library('salt@master-1.7-staged') _
runTestSuite(
concurrent_builds: 2,
distro_name: 'windows',
distro_version: '2019',
env: env,
golden_images_branch: 'master',
jenkins_slave_label: 'kitchen-slave',
nox_env_name: 'pytest-zeromq',
nox_passthrough_opts: '',
python_version: 'py3',
//splits: ['unit', 'integration'],
testrun_timeout: 10,
use_spot_instances: false,
fast_slow_staged_testrun: true)
// vim: ft=groovy