export DB before bundle in autopkgtest
This commit is contained in:
parent
07c6693120
commit
885dd87a97
1 changed files with 2 additions and 2 deletions
4
debian/tests/spec
vendored
4
debian/tests/spec
vendored
|
@ -19,11 +19,11 @@ cd /usr/share/gitlab
|
||||||
su gitlab -c 'truncate -s 0 Gemfile.lock'
|
su gitlab -c 'truncate -s 0 Gemfile.lock'
|
||||||
|
|
||||||
. /etc/gitlab/gitlab-debian.conf
|
. /etc/gitlab/gitlab-debian.conf
|
||||||
|
export RAILS_ENV=test
|
||||||
|
export DB=postgres
|
||||||
export INCLUDE_TEST_DEPENDS="true"
|
export INCLUDE_TEST_DEPENDS="true"
|
||||||
su gitlab -c "bundle install --local"
|
su gitlab -c "bundle install --local"
|
||||||
su gitlab -c "mkdir -p tmp/tests/gitlab-shell"
|
su gitlab -c "mkdir -p tmp/tests/gitlab-shell"
|
||||||
export RAILS_ENV=test
|
|
||||||
export DB=postgres
|
|
||||||
export dbname=gitlab_test
|
export dbname=gitlab_test
|
||||||
su postgres -c "createdb $dbname"
|
su postgres -c "createdb $dbname"
|
||||||
# enable the pg_trgm extension
|
# enable the pg_trgm extension
|
||||||
|
|
Loading…
Add table
Reference in a new issue