add test tep on gem2deb-test-runner
This commit is contained in:
parent
8a692aaf0c
commit
3e42d2f975
2 changed files with 4 additions and 1 deletions
1
debian/tests/control
vendored
1
debian/tests/control
vendored
|
@ -1,6 +1,7 @@
|
||||||
Tests: spec
|
Tests: spec
|
||||||
Depends: @,
|
Depends: @,
|
||||||
sudo,
|
sudo,
|
||||||
|
gem2deb-test-runner,
|
||||||
ruby-rspec,
|
ruby-rspec,
|
||||||
ruby-shoulda-matchers,
|
ruby-shoulda-matchers,
|
||||||
ruby-webmock,
|
ruby-webmock,
|
||||||
|
|
4
debian/tests/spec
vendored
4
debian/tests/spec
vendored
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
export SOURCE_TREE=${PWD}
|
||||||
|
|
||||||
if [ -z "$ADTTMP" ]; then
|
if [ -z "$ADTTMP" ]; then
|
||||||
ADTTMP=$(mktemp -d)
|
ADTTMP=$(mktemp -d)
|
||||||
cleanup() {
|
cleanup() {
|
||||||
|
@ -19,5 +21,5 @@ su gitlab -c 'truncate -s 0 Gemfile.lock'
|
||||||
export $(cat /etc/gitlab/gitlab-debian.conf)
|
export $(cat /etc/gitlab/gitlab-debian.conf)
|
||||||
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 "bundle exec rake -f ${AUTOPKGTEST_TMP}/debian/tests/spec.rake
|
su gitlab -c "bundle exec rake -f ${SOURCE_TREE}/debian/tests/spec.rake"
|
||||||
#config 2/2 failed, controllers many failed
|
#config 2/2 failed, controllers many failed
|
||||||
|
|
Loading…
Reference in a new issue