install danger gem from rubygems.org

We need danger < 9 (dep of gitlab-dangerfiles) inorder to avoid octokit conflict
This commit is contained in:
Mohammed Bilal 2022-09-07 13:05:55 +00:00
parent e0b2c50a43
commit d6a8d3b8ee
No known key found for this signature in database
GPG key ID: B3F5945285219E1F

View file

@ -66,6 +66,7 @@ export GEM_PATH=$(gem env gempath)
# Updating these rubygem packages are complicated
runuser -u ${gitlab_user} -- sh -c "if ! gem list -i -v 1.8.0 "^graphiql-rails$" >/dev/null; then gem install -v 1.8.0 graphiql-rails; fi"
# gitlab-dangerfiles is required in Rakefile and has many dependencies
runuser -u ${gitlab_user} -- sh -c "if ! gem list -i -v '~> 8.4' "^danger$" >/dev/null; then gem install -v '~> 8.4' danger; fi"
runuser -u ${gitlab_user} -- sh -c "if ! gem list -i "^gitlab-dangerfiles$" >/dev/null; then gem install gitlab-dangerfiles; fi"
# TODO: Update packages for these gems
@ -115,7 +116,7 @@ case "$1" in
configure)
gitlab_builds_log=${gitlab_log_dir}/builds
gitlab_repo_path=${gitlab_data_dir}/repositories
gitlab_uploads_path=${gitlab_data_dir}/public/uploads
gitlab_uploads_path=${gitlab_data_dir}/public/upload
# Create directories and change ownership
echo "Creating runtime directories for gitlab..."