Add an initial set of zuul jobs

This brings feature parity with the old travis configuration. The travis
confiuration was removed.

TrivialFix
Depends-On: https://review.openstack.org/#/c/615252/
Depends-On: https://review.openstack.org/#/c/615253/
Depends-On: https://review.openstack.org/#/c/615254/
Change-Id: Ia85259f3cb7e3f6479e21104856144432882ea66
This commit is contained in:
Will Szumski 2018-11-02 15:46:12 +00:00
parent ff5b909e9b
commit 2715c36be2
3 changed files with 18 additions and 47 deletions

View File

@ -1,45 +0,0 @@
---
language: python
# Run jobs in VMs - sudo is required by ansible tests.
sudo: required
# Install ansible
addons:
apt:
packages:
- gcc
- python-apt
- python-virtualenv
- realpath
# Create a build matrix for the different test jobs.
matrix:
include:
# Run Python style checks.
- python: 3.5
env: TOX_ENV=pep8
# Run Ansible linting.
- python: 3.5
env: TOX_ENV=alint
# Run Python 3.5 tests.
- python: 3.5
env: TOX_ENV=py35
# Run Python 2.7 tests.
- python: 2.7
env: TOX_ENV=py27
# Run coverage checks.
- python: 3.5
env: TOX_ENV=cover
# Generate docs.
- python: 3.5
env: TOX_ENV=docs
install:
# Install tox in a virtualenv to ensure we have an up to date version.
- pip install -U pip
- pip install tox
script:
# Run the tox environment.
- tox -e ${TOX_ENV}

9
zuul.d/jobs.yaml Normal file
View File

@ -0,0 +1,9 @@
---
- job:
name: tenks-tox-ansible-lint
description: |
Tox job that runs ansible-lint
parent: openstack-tox
vars:
tox_envlist: alint

View File

@ -1,9 +1,16 @@
---
- project:
templates:
- build-openstack-docs-pti
- openstack-cover-jobs
- openstack-python35-jobs
- openstack-python-jobs
check:
jobs:
- noop
- build-openstack-releasenotes
- tenks-tox-ansible-lint
gate:
queue: tenks
jobs:
- noop
- build-openstack-releasenotes
- tenks-tox-ansible-lint