From 777a1a5640cc4afe1afa9250a54674493648af1b Mon Sep 17 00:00:00 2001 From: Steven Dake Date: Mon, 10 Aug 2015 05:42:30 -0700 Subject: [PATCH] Add centos-src-build tox gate Change-Id: Id8c8e0d4dcad62e3995fa7f2bb91b6bafb3a387c Paritally-Implements: blueprint gate-source-builds --- tox.ini | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tox.ini b/tox.ini index 797b24a4a0..8e4aa17a45 100644 --- a/tox.ini +++ b/tox.ini @@ -42,6 +42,22 @@ commands = sudo -g docker testr run ^(test_images).* bash -c "if [ -f buildconf.bak ]; then mv buildconf.bak .buildconf; fi" +[testenv:images-centos-src] +whitelist_externals = find + bash + sudo + echo + mv + rm +commands = + bash -c "if [ -f .buildconf ]; then mv .buildconf buildconf.bak; fi" + bash -c "echo PREFIX=centos-source- > .buildconf" + find . -type f -name "*.pyc" -delete + bash -c "if [ ! -d .testrepository ]; then testr init; fi" + sudo -g docker testr run ^(test_images).* + rm -f .buildconf + bash -c "if [ -f buildconf.bak ]; then mv buildconf.bak .buildconf; fi" + [testenv:startenv] whitelist_externals = bash commands =