diff --git a/drydocker/eimap/build.sh b/drydocker/eimap/build.sh new file mode 100755 index 0000000..65cecac --- /dev/null +++ b/drydocker/eimap/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/eimap/test_build.sh b/drydocker/eimap/test_build.sh new file mode 100755 index 0000000..10a4dd8 --- /dev/null +++ b/drydocker/eimap/test_build.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +source /srv/stick.git/drydocker/generic_functions.sh + +repository_configuration + +_install_package_builddep ${PACKAGE} + +pushd /srv/${PACKAGE}.git + +retval=$(_shell rebar -v get-deps) + +retval=$(( ${retval} + $(_shell rebar -v compile) )) + +if [ ${retval} -ne 0 ]; then + exit ${retval} +fi + +popd diff --git a/drydocker/eimap/test_unit.sh b/drydocker/eimap/test_unit.sh new file mode 100755 index 0000000..e37633f --- /dev/null +++ b/drydocker/eimap/test_unit.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +pushd /srv/${PACKAGE}.git + +retval=$(_shell rebar -v eunit) + +if [ ${retval} -ne 0 ]; then + exit ${retval} +fi + +popd