
After running python unit tests, make sure there are no new files in the repo that are not listed in .gitignore. This includes empty directories. This will only print the result for now, later we can enforce this by exiting with failure if there are new files. Change-Id: I9501c3ee19d5289214976bc5e7cb58edb422e645 Reviewed-on: https://review.openstack.org/19966 Reviewed-by: Maru Newby <mnewby@internap.com> Reviewed-by: Monty Taylor <mordred@inaugust.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: Jeremy Stanley <fungi@yuggoth.org> Reviewed-by: Jeremy Stanley <fungi@yuggoth.org> Tested-by: Jenkins
277 lines
5.8 KiB
YAML
277 lines
5.8 KiB
YAML
- job-template:
|
|
name: '{name}-coverage'
|
|
|
|
triggers:
|
|
- zuul-post
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- coverage
|
|
|
|
publishers:
|
|
- coverage-log-post
|
|
- console-log-post
|
|
|
|
node: '{node}'
|
|
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-pep8'
|
|
|
|
triggers:
|
|
- zuul
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- pep8
|
|
|
|
publishers:
|
|
- pep8
|
|
- console-log
|
|
|
|
node: '{node}'
|
|
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-pylint'
|
|
|
|
triggers:
|
|
- zuul
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- pylint
|
|
|
|
publishers:
|
|
- pylint
|
|
- console-log
|
|
|
|
node: '{node}'
|
|
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-python26'
|
|
|
|
triggers:
|
|
- zuul
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- python26
|
|
- assert-no-extra-files
|
|
|
|
publishers:
|
|
- scp:
|
|
site: 'static.openstack.org'
|
|
files:
|
|
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
|
|
source: '**/*nose_results.html'
|
|
keep-hierarchy: false
|
|
copy-after-failure: true
|
|
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
|
|
source: '**/*testr_results.html'
|
|
keep-hierarchy: false
|
|
copy-after-failure: true
|
|
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
|
|
source: '.testrepository/tmp*'
|
|
keep-hierarchy: false
|
|
copy-after-failure: true
|
|
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
|
|
source: '**/*subunit_log.txt'
|
|
keep-hierarchy: false
|
|
copy-after-failure: true
|
|
- console-log
|
|
|
|
# >= precise does not have python2.6
|
|
node: oneiric
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-python26-folsom'
|
|
|
|
triggers:
|
|
- zuul
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- python26-folsom
|
|
- assert-no-extra-files
|
|
|
|
publishers:
|
|
- scp:
|
|
site: 'static.openstack.org'
|
|
files:
|
|
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
|
|
source: '**/*nose_results.html'
|
|
keep-hierarchy: false
|
|
copy-after-failure: true
|
|
- console-log
|
|
|
|
# >= precise does not have python2.6
|
|
node: oneiric
|
|
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-python27'
|
|
|
|
parameters:
|
|
- label:
|
|
name: NODE_LABEL
|
|
description: Label of node to use for this build
|
|
default: '{node}'
|
|
|
|
triggers:
|
|
- zuul
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- python27
|
|
- assert-no-extra-files
|
|
|
|
publishers:
|
|
- scp:
|
|
site: 'static.openstack.org'
|
|
files:
|
|
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
|
|
source: '**/*nose_results.html'
|
|
keep-hierarchy: false
|
|
copy-after-failure: true
|
|
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
|
|
source: '**/*testr_results.html'
|
|
keep-hierarchy: false
|
|
copy-after-failure: true
|
|
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
|
|
source: '.testrepository/tmp*'
|
|
keep-hierarchy: false
|
|
copy-after-failure: true
|
|
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
|
|
source: '**/*subunit_log.txt'
|
|
keep-hierarchy: false
|
|
copy-after-failure: true
|
|
- console-log
|
|
|
|
node: '{node}'
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-python27-folsom'
|
|
|
|
parameters:
|
|
- label:
|
|
name: NODE_LABEL
|
|
description: Label of node to use for this build
|
|
default: '{node}'
|
|
|
|
triggers:
|
|
- zuul
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- python27-folsom
|
|
- assert-no-extra-files
|
|
|
|
publishers:
|
|
- scp:
|
|
site: 'static.openstack.org'
|
|
files:
|
|
- target: 'logs/$ZUUL_CHANGE/$ZUUL_PATCHSET/$ZUUL_PIPELINE/$JOB_NAME/$BUILD_NUMBER'
|
|
source: '**/*nose_results.html'
|
|
keep-hierarchy: false
|
|
copy-after-failure: true
|
|
- console-log
|
|
|
|
node: '{node}'
|
|
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-docs'
|
|
|
|
triggers:
|
|
- zuul
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- docs
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
node: '{node}'
|
|
|
|
|
|
- job-template:
|
|
name: 'gate-{name}-pyflakes'
|
|
node: precise
|
|
|
|
triggers:
|
|
- zuul
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- pyflakes
|
|
|
|
publishers:
|
|
- console-log
|
|
|
|
|
|
- job-template:
|
|
name: '{name}-tarball'
|
|
node: precise
|
|
|
|
triggers:
|
|
- zuul-post
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- tarball:
|
|
project: '{name}'
|
|
|
|
publishers:
|
|
- tarball:
|
|
project: '{name}'
|
|
site: '{tarball-site}'
|
|
- console-log-post
|
|
|
|
|
|
- job-template:
|
|
name: '{name}-branch-tarball'
|
|
concurrent: false
|
|
node: precise
|
|
|
|
triggers:
|
|
- zuul-post
|
|
|
|
builders:
|
|
- gerrit-git-prep
|
|
- shell: |
|
|
#!/bin/bash -xe
|
|
BRANCH=$ZUUL_REFNAME
|
|
BRANCH_PATH=`echo $BRANCH | tr / -`
|
|
|
|
tox -v -evenv python setup.py sdist
|
|
mv dist/* dist/{name}-$BRANCH_PATH.tar.gz
|
|
|
|
publishers:
|
|
- tarball:
|
|
project: '{name}'
|
|
site: '{tarball-site}'
|
|
- console-log-post
|
|
|
|
|
|
- job-group:
|
|
name: python-jobs
|
|
jobs:
|
|
- '{name}-coverage'
|
|
- 'gate-{name}-pep8'
|
|
- 'gate-{name}-python26'
|
|
- 'gate-{name}-python27'
|
|
- 'gate-{name}-docs'
|
|
- '{name}-tarball'
|
|
- '{name}-branch-tarball'
|
|
# pyflakes isn't standard
|
|
# pylint isn't standard
|
|
|
|
- job-group:
|
|
name: python-jobs-folsom
|
|
jobs:
|
|
- 'gate-{name}-python26-folsom'
|
|
- 'gate-{name}-python27-folsom'
|