2015-12-31 12:01:31 +08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# install.sh
|
|
|
|
#
|
|
|
|
# This file is meant to be sourced during the `install` phase of the Travis
|
|
|
|
# build. Do not attempt to source or run it locally.
|
|
|
|
#
|
|
|
|
# shellcheck disable=SC1090
|
|
|
|
. "${TRAVIS_BUILD_DIR}/ci/travis/helpers.sh"
|
|
|
|
|
|
|
|
enter_build_step
|
|
|
|
|
|
|
|
header 'Running install.sh...'
|
|
|
|
|
|
|
|
# install bundler and project dependencies in $GEM_HOME
|
|
|
|
run gem install --no-ri --no-rdoc bundler
|
|
|
|
run which bundle
|
|
|
|
run bundle --version
|
2016-01-08 18:25:23 +08:00
|
|
|
run bundle install --path="${GEM_HOME%/*/*}" --without=debug release test
|
2015-12-31 12:01:31 +08:00
|
|
|
|
2016-01-08 18:25:23 +08:00
|
|
|
if must_run_tests; then
|
|
|
|
run bundle install --path="${GEM_HOME%/*/*}" --with=test
|
2015-12-31 12:01:31 +08:00
|
|
|
|
2016-01-08 18:25:23 +08:00
|
|
|
# install Formulae and Casks without which some tests would be skipped
|
|
|
|
brew_install cabextract
|
|
|
|
brew_install unar
|
|
|
|
run brew cask install Casks/adobe-air.rb
|
|
|
|
fi
|
2015-12-31 12:01:31 +08:00
|
|
|
|
|
|
|
exit_build_step
|