Skip to content

Commit

Permalink
Update Evergreen config to correctly use RAILS and DRIVER variables
Browse files Browse the repository at this point in the history
  • Loading branch information
estolfo committed Aug 15, 2017
1 parent 6af6825 commit ad7023d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .evergreen/.evg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ functions:
working_dir: "src"
script: |
${PREPARE_SHELL}
MONGODB_URI="${MONGODB_URI}" TOPOLOGY=${TOPOLOGY} RVM_RUBY="${RVM_RUBY}" .evergreen/run-tests.sh
MONGODB_URI="${MONGODB_URI}" TOPOLOGY=${TOPOLOGY} RVM_RUBY="${RVM_RUBY}" RAILS="${RAILS}" DRIVER="${DRIVER}" .evergreen/run-tests.sh
"cleanup":
- command: shell.exec
Expand Down
4 changes: 2 additions & 2 deletions .evergreen/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ EOH

gem install bundler

if [ "$DRIVER" == "master" ]; then
if [ $DRIVER == "master" ]; then
bundle install --gemfile=gemfiles/driver_master.gemfile
elif [ "$RAILS" == "master" ]; then
elif [ $RAILS == "master" ]; then
bundle install --gemfile=gemfiles/rails_master.gemfile
else
bundle install
Expand Down

0 comments on commit ad7023d

Please sign in to comment.