#!/bin/sh

set -e
set -u
set -x
#TODO: script the installation of the pre-reqs: sqlite3
#sudo apt-get install sqlite3 libsqlite3-dev libsqlite3-ruby

outdir='build_artefacts'
rm -rf $outdir
mkdir -p $outdir
rm -f debug.log
rm -f test.sqlite3.db

echo "started build script $0 in `$outdir` at `date`"

set +e
~/sysadmin/show_platform/show_platform.sh > $outdir/platform.txt 2>&1
set -e

echo "Running custom build.sh - install bundle, rake"
bundle --path=.gem/
set +e
rake rcov > $outdir/testtask.log
spec_rc=$?
set -e

cp debug.log $outdir/
cp test.sqlite3.db $outdir/

exit $spec_rc

#!/bin/sh

set -e
set -u
set -x
#TODO: script the installation of the pre-reqs: sqlite3
#sudo apt-get install sqlite3 libsqlite3-dev libsqlite3-ruby

outdir='build_artefacts'
rm -rf $outdir
mkdir -p $outdir

echo "started build script $0 in `$outdir` at `date`"

set +e
~/sysadmin/show_platform/show_platform.sh > $outdir/platform.txt 2>&1
set -e

echo "Running custom build.sh - install bundle, rake"
bundle --path=.gem/
set +e
rake rcov > $outdir/testtask.log
spec_rc=$?
set -e

exit $spec_rc

Remove obsolete logs from hudson
Remove obsolete logs from hudson
