use environment variable to exclude groups
This commit is contained in:
parent
5bb32036dd
commit
3818dcf65a
2 changed files with 10 additions and 5 deletions
|
@ -2,7 +2,7 @@ Bundler will fail when it can't find these locally
|
||||||
|
|
||||||
--- a/Gemfile
|
--- a/Gemfile
|
||||||
+++ b/Gemfile
|
+++ b/Gemfile
|
||||||
@@ -245,87 +245,66 @@
|
@@ -245,87 +245,67 @@
|
||||||
gem 'influxdb', '~> 0.2', require: false
|
gem 'influxdb', '~> 0.2', require: false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -37,7 +37,8 @@ Bundler will fail when it can't find these locally
|
||||||
- gem 'database_cleaner', '~> 1.5.0'
|
- gem 'database_cleaner', '~> 1.5.0'
|
||||||
- gem 'factory_girl_rails', '~> 4.6.0'
|
- gem 'factory_girl_rails', '~> 4.6.0'
|
||||||
- gem 'rspec-rails', '~> 3.5.0'
|
- gem 'rspec-rails', '~> 3.5.0'
|
||||||
+group :development, optional: true do
|
+#group :development, optional: true do
|
||||||
|
+if ENV["INCLUDE_TEST_DEPENDS"] == "true"
|
||||||
+# gem 'byebug', '~> 8.2.1', platform: :mri
|
+# gem 'byebug', '~> 8.2.1', platform: :mri
|
||||||
+# gem 'pry-rails', '~> 0.3.4'
|
+# gem 'pry-rails', '~> 0.3.4'
|
||||||
+#
|
+#
|
||||||
|
@ -124,9 +125,12 @@ Bundler will fail when it can't find these locally
|
||||||
+# gem 'sham_rack', '~> 1.3.6'
|
+# gem 'sham_rack', '~> 1.3.6'
|
||||||
end
|
end
|
||||||
|
|
||||||
group :production do
|
-group :production do
|
||||||
gem 'gitlab_meta', '7.0'
|
- gem 'gitlab_meta', '7.0'
|
||||||
end
|
-end
|
||||||
|
+#group :production do
|
||||||
|
+# gem 'gitlab_meta', '7.0'
|
||||||
|
+#end
|
||||||
|
|
||||||
-gem 'newrelic_rpm', '~> 3.16'
|
-gem 'newrelic_rpm', '~> 3.16'
|
||||||
+#gem 'newrelic_rpm', '~> 3.16'
|
+#gem 'newrelic_rpm', '~> 3.16'
|
||||||
|
|
1
debian/tests/spec
vendored
1
debian/tests/spec
vendored
|
@ -17,6 +17,7 @@ cd /usr/share/gitlab
|
||||||
su gitlab -c 'truncate -s 0 Gemfile.lock'
|
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"
|
||||||
su gitlab -c "bundle install --with development test --local"
|
su gitlab -c "bundle install --with development test --local"
|
||||||
su gitlab -c "bundle exec rake -f ${AUTOPKGTEST_TMP}/debian/tests/spec.rake
|
su gitlab -c "bundle exec rake -f ${AUTOPKGTEST_TMP}/debian/tests/spec.rake
|
||||||
#config 2/2 failed, controllers many failed
|
#config 2/2 failed, controllers many failed
|
||||||
|
|
Loading…
Reference in a new issue