summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
authorCan Eldem <celdem@gitlab.com>2019-07-29 19:13:24 +0000
committerOlivier Gonzalez <ogonzalez@gitlab.com>2019-07-29 19:13:24 +0000
commitbee3afe69d5324c557bf125864590eb5f1c78b49 (patch)
treeacf6a13135d95f4458a66e3ac8c132ce970b6cc5 /run.sh
parenta7beb59fc46f4acc1a454bb7d70185637c9c1fc7 (diff)
Revert "Merge branch 'upgrade-docker-license-finder' into 'master'"
This reverts merge request !37
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/run.sh b/run.sh
index 019d087..0ce0266 100755
--- a/run.sh
+++ b/run.sh
@@ -95,6 +95,9 @@ case "$COMMAND" in
analyze)
# Analyze project
+ # Load RVM
+ source /rvm.sh
+
# Change current directory to the project path.
APP_PATH=$1
shift
@@ -109,9 +112,7 @@ case "$COMMAND" in
# So we ignore the error.
$($rvm_recommended_ruby) 2>/dev/null || true
rvm use .
- # rvm pulls outdated gems
- # need this to update system bundler
- gem update --system
+ gem install bundler
# We need to install the license_finder gem into this Ruby version too.
gem install license_finder -v "$LICENSE_FINDER_VERSION"
fi
@@ -119,7 +120,7 @@ case "$COMMAND" in
# Ignore test and development dependencies.
license_finder ignored_groups add development
license_finder ignored_groups add test
- bundle install
+ bundle install --without "development test"
skip_prepare=true
fi