Merge "Native Zuul v3 tox jobs"
This commit is contained in:
commit
f4787c3ed3
137
.zuul.yaml
Normal file
137
.zuul.yaml
Normal file
@ -0,0 +1,137 @@
|
||||
- job:
|
||||
name: swift-tox-base
|
||||
parent: openstack-tox-py27
|
||||
description: |
|
||||
Base job for swift-tox jobs.
|
||||
|
||||
It sets TMPDIR to an XFS mount point created via
|
||||
tools/test-setup.sh.
|
||||
timeout: 2400
|
||||
vars:
|
||||
tox_environment:
|
||||
TMPDIR: "{{ ansible_env.HOME }}/xfstmp"
|
||||
|
||||
- job:
|
||||
name: swift-tox-py27
|
||||
parent: swift-tox-base
|
||||
description: |
|
||||
Run unit-tests for swift under cPython version 2.7.
|
||||
|
||||
Uses tox with the ``py27`` environment.
|
||||
It sets TMPDIR to an XFS mount point created via
|
||||
tools/test-setup.sh.
|
||||
vars:
|
||||
tox_envlist: py27
|
||||
|
||||
- job:
|
||||
name: swift-tox-py27-centos-7
|
||||
parent: swift-tox-py27
|
||||
nodeset: centos-7
|
||||
|
||||
- job:
|
||||
name: swift-tox-py35
|
||||
parent: swift-tox-base
|
||||
description: |
|
||||
Run unit-tests for swift under cPython version 3.5.
|
||||
|
||||
Uses tox with the ``py35`` environment.
|
||||
It sets TMPDIR to an XFS mount point created via
|
||||
tools/test-setup.sh.
|
||||
vars:
|
||||
tox_envlist: py35
|
||||
bindep_profile: test py35
|
||||
|
||||
- job:
|
||||
name: swift-tox-func
|
||||
parent: swift-tox-base
|
||||
description: |
|
||||
Run functional tests for swift under cPython version 2.7.
|
||||
|
||||
Uses tox with the ``func`` environment.
|
||||
It sets TMPDIR to an XFS mount point created via
|
||||
tools/test-setup.sh.
|
||||
vars:
|
||||
tox_envlist: func
|
||||
|
||||
- job:
|
||||
name: swift-tox-func-centos-7
|
||||
parent: swift-tox-func
|
||||
nodeset: centos-7
|
||||
|
||||
- job:
|
||||
name: swift-tox-func-post-as-copy
|
||||
parent: swift-tox-base
|
||||
description: |
|
||||
Run functional tests for swift under cPython version 2.7.
|
||||
|
||||
Uses tox with the ``func-post-as-copy`` environment.
|
||||
It sets TMPDIR to an XFS mount point created via
|
||||
tools/test-setup.sh.
|
||||
vars:
|
||||
tox_envlist: func-post-as-copy
|
||||
|
||||
- job:
|
||||
name: swift-tox-func-post-as-copy-centos-7
|
||||
parent: swift-tox-func-post-as-copy
|
||||
nodeset: centos-7
|
||||
|
||||
- job:
|
||||
name: swift-tox-func-encryption
|
||||
parent: swift-tox-base
|
||||
description: |
|
||||
Run functional tests for swift under cPython version 2.7.
|
||||
|
||||
Uses tox with the ``func-encryption`` environment.
|
||||
It sets TMPDIR to an XFS mount point created via
|
||||
tools/test-setup.sh.
|
||||
vars:
|
||||
tox_envlist: func-encryption
|
||||
|
||||
- job:
|
||||
name: swift-tox-func-encryption-centos-7
|
||||
parent: swift-tox-func-encryption
|
||||
nodeset: centos-7
|
||||
|
||||
- job:
|
||||
name: swift-tox-func-ec
|
||||
parent: swift-tox-base
|
||||
description: |
|
||||
Run functional tests for swift under cPython version 2.7.
|
||||
|
||||
Uses tox with the ``func-post-ec`` environment.
|
||||
It sets TMPDIR to an XFS mount point created via
|
||||
tools/test-setup.sh.
|
||||
branches: ^(?!stable/ocata).*$
|
||||
vars:
|
||||
tox_envlist: func-ec
|
||||
|
||||
- job:
|
||||
name: swift-tox-func-ec-centos-7
|
||||
parent: swift-tox-func-ec
|
||||
nodeset: centos-7
|
||||
|
||||
- project:
|
||||
name: openstack/swift
|
||||
check:
|
||||
jobs:
|
||||
- swift-tox-py27
|
||||
- swift-tox-py35
|
||||
- swift-tox-func
|
||||
- swift-tox-func-post-as-copy
|
||||
- swift-tox-func-encryption
|
||||
- swift-tox-func-ec
|
||||
gate:
|
||||
jobs:
|
||||
- swift-tox-py27
|
||||
- swift-tox-py35
|
||||
- swift-tox-func
|
||||
- swift-tox-func-post-as-copy
|
||||
- swift-tox-func-encryption
|
||||
- swift-tox-func-ec
|
||||
experimental:
|
||||
jobs:
|
||||
- swift-tox-py27-centos-7
|
||||
- swift-tox-func-centos-7
|
||||
- swift-tox-func-post-as-copy-centos-7
|
||||
- swift-tox-func-encryption-centos-7
|
||||
- swift-tox-func-ec-centos-7
|
14
tools/test-setup.sh
Executable file
14
tools/test-setup.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/bin/bash -xe
|
||||
|
||||
# Set up a partition formatted with XFS to use as TMPDIR for our tests.
|
||||
# OpenStack CI will invoke this script as part of tox based tests.
|
||||
# The file .zuul.yaml set TMPDIR to $HOME/xfstmp.
|
||||
|
||||
# Create a large-ish file that we will mount as a loopback
|
||||
truncate -s 1GB $HOME/1G_xfs_file
|
||||
# Format the new file as XFS.
|
||||
/sbin/mkfs.xfs $HOME/1G_xfs_file
|
||||
# loopback mount the file
|
||||
mkdir -p $HOME/xfstmp
|
||||
sudo mount -o loop,noatime,nodiratime $HOME/1G_xfs_file $HOME/xfstmp
|
||||
sudo chmod 777 $HOME/xfstmp
|
Loading…
Reference in New Issue
Block a user