summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
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