export DB before bundle in autopkgtest

This commit is contained in:
Praveen Arimbrathodiyil 2017-03-17 22:52:59 +05:30
parent 07c6693120
commit 885dd87a97

4
debian/tests/spec vendored
View file

@ -19,11 +19,11 @@ cd /usr/share/gitlab
su gitlab -c 'truncate -s 0 Gemfile.lock'
. /etc/gitlab/gitlab-debian.conf
export RAILS_ENV=test
export DB=postgres
export INCLUDE_TEST_DEPENDS="true"
su gitlab -c "bundle install --local"
su gitlab -c "mkdir -p tmp/tests/gitlab-shell"
export RAILS_ENV=test
export DB=postgres
export dbname=gitlab_test
su postgres -c "createdb $dbname"
# enable the pg_trgm extension