diff --git a/drydocker/chwala/build.sh b/drydocker/chwala/build.sh new file mode 100755 index 0000000..65cecac --- /dev/null +++ b/drydocker/chwala/build.sh @@ -0,0 +1,31 @@ +#!/bin/bash + +set -x + +docker run -it \ + --attach=stdout \ + --attach=stderr \ + --detach=false \ + --rm=true \ + --volume=/root/.oscrc:/root/.oscrc \ + --volume=/var/tmp/osbuild-packagecache/:/var/tmp/osbuild-packagecache/ \ + --hostname="kolab.example.org" \ + -e "ID=${id}" \ + -e "COMMIT=${commit}" \ + -e "DIFFERENTIAL=${differential}" \ + -e "PACKAGE=${package}" \ + -e "PHAB_CERT=${PHAB_CERT}" \ + -e "PHAB_USER=${PHAB_USER}" \ + -e "PHID=${phid}" \ + -e "URI=${uri}" \ + -e "RO_URI=${ro_uri}" \ + -e "VCS=${vcs}" \ + -e "TEST_BUILD=${test_build}" \ + -e "TEST_FUNCTIONAL=${test_functional}" \ + -e "TEST_INTEGRATION=${test_integration}" \ + -e "TEST_PERFORMANCE=${test_performance}" \ + -e "TEST_UNIT=${test_unit}" \ + -e "TEST_OBS=${test_obs}" \ + kolab/ci-maipo + +exit $? diff --git a/drydocker/chwala/test_build.sh b/drydocker/chwala/test_build.sh new file mode 100755 index 0000000..88cc699 --- /dev/null +++ b/drydocker/chwala/test_build.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +pushd /srv/${PACKAGE}.git + +source /srv/stick.git/drydocker/generic_php_lint.sh + +retval=$(_shell generic_php_lint) + +source /srv/stick.git/drydocker/generic_js_lint.sh + +retval=$(( ${retval} + $(_shell generic_js_lint) )) + +if [ ${retval} -ne 0 ]; then + exit ${retval} +fi + +popd diff --git a/drydocker/chwala/test_obs.sh b/drydocker/chwala/test_obs.sh new file mode 100755 index 0000000..e30159a --- /dev/null +++ b/drydocker/chwala/test_obs.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +pushd /srv/${PACKAGE}.git + +source /srv/stick.git/drydocker/generic_obs.sh + +retval=$(_shell obs_build_local) + +if [ ${retval} -ne 0 ]; then + exit ${retval} +fi + +retval=$(_shell obs_install_local) + +if [ ${retval} -ne 0 ]; then + exit ${retval} +fi + +retval=$(_shell obs_checkin) + +if [ ${retval} -ne 0 ]; then + exit ${retval} +fi + +popd