#!/bin/bash
set -x

# We need Javascript for Ruby tests because some tests need assets, so do this unconditionally
nvm install
npm install --global yarn
yarn install

if [ "${LANGUAGE}" = "ruby" ]; then
  cp config/database.yml.ci config/database.yml
  bin/rake db:create db:migrate RAILS_ENV=test
fi


#!/bin/bash
set -x

# We need Javascript for Ruby tests because some tests need assets, so do this unconditionally
nvm install
npm install --global yarn
yarn install

if [ "${LANGUAGE}" = "ruby" ]; then
  cp config/database.yml.ci config/database.yml
  gem update --system
  bin/rake db:create db:migrate RAILS_ENV=test
fi

Upgrade rubygems to get necessary bug fixes
Upgrade rubygems to get necessary bug fixes
