From 2366d14fd93392515a7f6b59ae566c9907e3cdf7 Mon Sep 17 00:00:00 2001 From: Emilien Macchi Date: Wed, 20 Jul 2016 12:08:13 -0400 Subject: [PATCH] Add CI scripts Add CI scripts for: - lint - syntax 3 and 4 - unit - beaker And remove run_tests.sh which is not useful anymore. Change-Id: I235d8561d6cc2c593cf788ced04d1394127ab3ce --- contrib/bootstrap.sh | 9 +++++++-- functions | 16 ++++++++++++++++ run_beaker_tests.sh | 25 +++++++++++++++++++++++++ run_lint_tests.sh | 22 ++++++++++++++++++++++ run_syntax_tests.sh | 30 ++++++++++++++++++++++++++++++ run_tests.sh | 42 ------------------------------------------ run_unit_tests.sh | 22 ++++++++++++++++++++++ 7 files changed, 122 insertions(+), 44 deletions(-) create mode 100644 functions create mode 100755 run_beaker_tests.sh create mode 100755 run_lint_tests.sh create mode 100755 run_syntax_tests.sh delete mode 100755 run_tests.sh create mode 100755 run_unit_tests.sh diff --git a/contrib/bootstrap.sh b/contrib/bootstrap.sh index 69c67fa..12caa0c 100644 --- a/contrib/bootstrap.sh +++ b/contrib/bootstrap.sh @@ -105,8 +105,13 @@ popd # Step 4: Retrieve the puppet-modulesync-configs directory and configure it for your need # -git clone https://review.openstack.org/openstack/puppet-modulesync-configs -pushd puppet-modulesync-configs/ +if [ -e /usr/zuul-env/bin/zuul-cloner ] ; then + /usr/zuul-env/bin/zuul-cloner --cache-dir /opt/git \ + git://git.openstack.org openstack/puppet-modulesync-configs +else + git clone git://git.openstack.org/openstack/puppet-modulesync-configs openstack/puppet-modulesync-configs +fi +pushd openstack/puppet-modulesync-configs/ [ -z "${testing}" ] || ${GEM_HOME}/bin/bundle install cat > managed_modules.yml <