diff options
Diffstat (limited to 'commands')
-rwxr-xr-x | commands/build | 14 | ||||
-rwxr-xr-x | commands/helpers/build | 8 |
2 files changed, 17 insertions, 5 deletions
diff --git a/commands/build b/commands/build index 99f3048..b90f0fa 100755 --- a/commands/build +++ b/commands/build @@ -1,8 +1,12 @@ -#!/usr/bin/python -u +#!/bin/bash -import common +commandsdir=`dirname "$0"` +rootdir=`dirname "$commandsdir"` +helpersdir=$commandsdir/helpers -from devbot import build +timestamp=`date +%Y%m%d-%H%M%S` +logfile=$rootdir/logs/build-$timestamp.log -common.setup() -build.build() +PYTHONPATH=$commandsdir $helpersdir/build | tee -a $logfile + +exit ${PIPESTATUS[0]} diff --git a/commands/helpers/build b/commands/helpers/build new file mode 100755 index 0000000..99f3048 --- /dev/null +++ b/commands/helpers/build @@ -0,0 +1,8 @@ +#!/usr/bin/python -u + +import common + +from devbot import build + +common.setup() +build.build() |