23 lines
464 B
Bash
Executable file
23 lines
464 B
Bash
Executable file
#!/bin/sh
|
|
|
|
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
|
|
su gitlab -c 'truncate -s 0 Gemfile.lock'
|
|
|
|
export $(cat /etc/gitlab/gitlab-debian.conf)
|
|
export INCLUDE_TEST_DEPENDS="true"
|
|
su gitlab -c "bundle install --local"
|
|
su gitlab -c "bundle exec rake -f ${AUTOPKGTEST_TMP}/debian/tests/spec.rake
|
|
#config 2/2 failed, controllers many failed
|