diff --git a/drydocker/copenhagen/build.sh b/drydocker/copenhagen/build.sh new file mode 100755 index 0000000..518617f --- /dev/null +++ b/drydocker/copenhagen/build.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +set -x + +docker run -it \ + --attach=stdout \ + --attach=stderr \ + --detach=false \ + -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}" \ + kolab/ci-maipo + +exit $? diff --git a/drydocker/copenhagen/test_build.sh b/drydocker/copenhagen/test_build.sh new file mode 100755 index 0000000..a389790 --- /dev/null +++ b/drydocker/copenhagen/test_build.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +pushd /srv/copenhagen.git + +../generic_php_lint.sh + +retval=$(_shell generic_php_lint) + +if [ ${retval} -ne 0 ]; then + exit ${retval} +fi +popd diff --git a/drydocker/generic_php_lint.sh b/drydocker/generic_php_lint.sh new file mode 100755 index 0000000..8d0ba4c --- /dev/null +++ b/drydocker/generic_php_lint.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +function generic_php_lint { + retval=0 + + find . -type f -name "*.php" | sort | while read file; do + echo -n "Linting '$file' ... " >&3 + php -l $file; retval=$(( ${retval} + $? )) >&3 + done + + if [ ${retval} -ne 0 ]; then + exit ${retval} + fi + + return ${retval} +} diff --git a/drydocker/roundcubemail-plugins-kolab/build.sh b/drydocker/roundcubemail-plugins-kolab/build.sh new file mode 100755 index 0000000..518617f --- /dev/null +++ b/drydocker/roundcubemail-plugins-kolab/build.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +set -x + +docker run -it \ + --attach=stdout \ + --attach=stderr \ + --detach=false \ + -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}" \ + kolab/ci-maipo + +exit $? diff --git a/drydocker/roundcubemail-plugins-kolab/test_build.sh b/drydocker/roundcubemail-plugins-kolab/test_build.sh new file mode 100755 index 0000000..5283667 --- /dev/null +++ b/drydocker/roundcubemail-plugins-kolab/test_build.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +pushd /srv/roundcubemail-plugins-kolab.git + +../generic_php_lint.sh + +retval=$(_shell generic_php_lint) + +if [ ${retval} -ne 0 ]; then + exit ${retval} +fi +popd diff --git a/drydocker/roundcubemail/build.sh b/drydocker/roundcubemail/build.sh new file mode 100755 index 0000000..518617f --- /dev/null +++ b/drydocker/roundcubemail/build.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +set -x + +docker run -it \ + --attach=stdout \ + --attach=stderr \ + --detach=false \ + -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}" \ + kolab/ci-maipo + +exit $? diff --git a/drydocker/roundcubemail/test_build.sh b/drydocker/roundcubemail/test_build.sh new file mode 100755 index 0000000..c9d826e --- /dev/null +++ b/drydocker/roundcubemail/test_build.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +pushd /srv/roundcubemail.git + +../generic_php_lint.sh + +retval=$(_shell generic_php_lint) + +if [ ${retval} -ne 0 ]; then + exit ${retval} +fi +popd