2016-09-15 21:33:05 +05:30
|
|
|
#!/bin/sh
|
|
|
|
|
2016-09-18 20:24:51 +05:30
|
|
|
export SOURCE_TREE=${PWD}
|
|
|
|
|
2016-09-15 21:33:05 +05:30
|
|
|
if [ -z "$ADTTMP" ]; then
|
|
|
|
ADTTMP=$(mktemp -d)
|
|
|
|
cleanup() {
|
|
|
|
rm -rf "$ADTTMP"
|
|
|
|
}
|
|
|
|
trap cleanup INT TERM EXIT
|
|
|
|
fi
|
|
|
|
|
|
|
|
cd $ADTTMP
|
|
|
|
|
|
|
|
exec 2>&1
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
cd /usr/share/gitlab
|
2016-09-17 15:33:46 +05:30
|
|
|
su gitlab -c 'truncate -s 0 Gemfile.lock'
|
2016-09-15 21:33:05 +05:30
|
|
|
|
|
|
|
export $(cat /etc/gitlab/gitlab-debian.conf)
|
2016-09-18 19:06:28 +05:30
|
|
|
export INCLUDE_TEST_DEPENDS="true"
|
2016-09-18 19:41:30 +05:30
|
|
|
su gitlab -c "bundle install --local"
|
2016-09-18 20:24:51 +05:30
|
|
|
su gitlab -c "bundle exec rake -f ${SOURCE_TREE}/debian/tests/spec.rake"
|
2016-09-16 00:02:48 +05:30
|
|
|
#config 2/2 failed, controllers many failed
|