add bash8 to devstack tests

this creates a non-voting bash8 test for devstack which does basic
style checking of the devstack shell scripts.

Requires https://review.openstack.org/#/c/51711/ to land first for
this to work.

Change-Id: Ib6ae29cf4058263aedd3d9c0a1e15de27eea729b
This commit is contained in:
Sean Dague 2013-10-14 19:01:28 -04:00
parent 4b92a92542
commit b5155d4199
5 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,33 @@
#!/bin/bash -xe
# Copyright 2013 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
org=$1
project=$2
if [[ -z "$org" || -z "$project" ]]
then
echo "Usage: $0 ORG PROJECT"
echo
echo "ORG: The project organization (eg 'openstack')"
echo "PROJECT: The project name (eg 'nova')"
exit 1
fi
source /usr/local/jenkins/slave_scripts/select-mirror.sh $org $project
set -o pipefail
./run_tests.sh
set +o pipefail

View File

@ -47,6 +47,11 @@
builders:
- shell: "./tools/version.sh --reset"
- builder:
name: bash8
builders:
- shell: "/usr/local/jenkins/slave_scripts/run-bash8.sh {github-org} {project}"
- builder:
name: pep8
builders:

View File

@ -31,6 +31,20 @@
node: '{node}'
- job-template:
name: 'gate-{name}-bash8'
builders:
- gerrit-git-prep
- bash8:
github-org: '{github-org}'
project: '{name}'
publishers:
- console-log
node: '{node}'
- job-template:
name: 'gate-{name}-unittests-{env}'

View File

@ -970,6 +970,15 @@
node: 'devstack-precise || devstack-precise-check'
- project:
name: devstack
github-org: openstack-dev
node: precise
jobs:
- gate-{name}-bash8
- project:
name: tempest
github-org: openstack

View File

@ -157,6 +157,9 @@ jobs:
# merged into gate-grenade-devstack-vm
- name: gate-grenade-noop
branch: ^(stable/(folsom|grizzly)).*$
- name: gate-devstack-bash8
branch: ^(stable/(folsom|grizzly)).*$
voting: false
- name: gate-tempest-docs
branch: ^(?!stable/(folsom|grizzly)).*$
- name: tempest-docs
@ -1585,6 +1588,7 @@ projects:
- name: openstack-dev/devstack
check:
- gate-devstack-bash8
- check-tempest-devstack-vm-smoke
- check-tempest-devstack-vm-full
- check-tempest-devstack-vm-cinder
@ -1595,6 +1599,7 @@ projects:
- check-grenade-devstack-vm
- check-swift-devstack-vm-functional
gate:
- gate-devstack-bash8
- gate-tempest-devstack-vm-smoke
- gate-tempest-devstack-vm-full
- gate-tempest-devstack-vm-cinder