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:
parent
4b92a92542
commit
b5155d4199
33
modules/jenkins/files/slave_scripts/run-bash8.sh
Executable file
33
modules/jenkins/files/slave_scripts/run-bash8.sh
Executable 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
|
@ -47,6 +47,11 @@
|
|||||||
builders:
|
builders:
|
||||||
- shell: "./tools/version.sh --reset"
|
- shell: "./tools/version.sh --reset"
|
||||||
|
|
||||||
|
- builder:
|
||||||
|
name: bash8
|
||||||
|
builders:
|
||||||
|
- shell: "/usr/local/jenkins/slave_scripts/run-bash8.sh {github-org} {project}"
|
||||||
|
|
||||||
- builder:
|
- builder:
|
||||||
name: pep8
|
name: pep8
|
||||||
builders:
|
builders:
|
||||||
|
@ -31,6 +31,20 @@
|
|||||||
|
|
||||||
node: '{node}'
|
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:
|
- job-template:
|
||||||
name: 'gate-{name}-unittests-{env}'
|
name: 'gate-{name}-unittests-{env}'
|
||||||
|
|
||||||
|
@ -970,6 +970,15 @@
|
|||||||
node: 'devstack-precise || devstack-precise-check'
|
node: 'devstack-precise || devstack-precise-check'
|
||||||
|
|
||||||
|
|
||||||
|
- project:
|
||||||
|
name: devstack
|
||||||
|
github-org: openstack-dev
|
||||||
|
node: precise
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
- gate-{name}-bash8
|
||||||
|
|
||||||
|
|
||||||
- project:
|
- project:
|
||||||
name: tempest
|
name: tempest
|
||||||
github-org: openstack
|
github-org: openstack
|
||||||
|
@ -157,6 +157,9 @@ jobs:
|
|||||||
# merged into gate-grenade-devstack-vm
|
# merged into gate-grenade-devstack-vm
|
||||||
- name: gate-grenade-noop
|
- name: gate-grenade-noop
|
||||||
branch: ^(stable/(folsom|grizzly)).*$
|
branch: ^(stable/(folsom|grizzly)).*$
|
||||||
|
- name: gate-devstack-bash8
|
||||||
|
branch: ^(stable/(folsom|grizzly)).*$
|
||||||
|
voting: false
|
||||||
- name: gate-tempest-docs
|
- name: gate-tempest-docs
|
||||||
branch: ^(?!stable/(folsom|grizzly)).*$
|
branch: ^(?!stable/(folsom|grizzly)).*$
|
||||||
- name: tempest-docs
|
- name: tempest-docs
|
||||||
@ -1585,6 +1588,7 @@ projects:
|
|||||||
|
|
||||||
- name: openstack-dev/devstack
|
- name: openstack-dev/devstack
|
||||||
check:
|
check:
|
||||||
|
- gate-devstack-bash8
|
||||||
- check-tempest-devstack-vm-smoke
|
- check-tempest-devstack-vm-smoke
|
||||||
- check-tempest-devstack-vm-full
|
- check-tempest-devstack-vm-full
|
||||||
- check-tempest-devstack-vm-cinder
|
- check-tempest-devstack-vm-cinder
|
||||||
@ -1595,6 +1599,7 @@ projects:
|
|||||||
- check-grenade-devstack-vm
|
- check-grenade-devstack-vm
|
||||||
- check-swift-devstack-vm-functional
|
- check-swift-devstack-vm-functional
|
||||||
gate:
|
gate:
|
||||||
|
- gate-devstack-bash8
|
||||||
- gate-tempest-devstack-vm-smoke
|
- gate-tempest-devstack-vm-smoke
|
||||||
- gate-tempest-devstack-vm-full
|
- gate-tempest-devstack-vm-full
|
||||||
- gate-tempest-devstack-vm-cinder
|
- gate-tempest-devstack-vm-cinder
|
||||||
|
Loading…
Reference in New Issue
Block a user