-
Notifications
You must be signed in to change notification settings - Fork 900
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
15 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,16 @@ | ||
set -v | ||
|
||
echo "gem: --no-ri --no-rdoc --no-document" > ~/.gemrc | ||
travis_retry gem install bundler -v ">= 1.11.1" | ||
|
||
if [[ -n "${GEM}" ]] ; then | ||
cd gems/${GEM} | ||
else | ||
echo "1" > REGION | ||
cp certs/v2_key.dev certs/v2_key | ||
cp config/database.pg.yml config/database.yml | ||
cp config/cable.yml.sample config/cable.yml | ||
psql -c "CREATE USER root SUPERUSER PASSWORD 'smartvm';" -U postgres | ||
export BUNDLE_WITHOUT=development | ||
source $TRAVIS_BUILD_DIR/tools/ci/setup_vmdb_configs.sh | ||
fi | ||
export BUNDLE_GEMFILE=${PWD}/Gemfile | ||
|
||
source $TRAVIS_BUILD_DIR/tools/ci/setup_ruby_env.sh | ||
|
||
# suites that need bower assets to work: javascript, vmdb | ||
if [[ "$TEST_SUITE" = "javascript" ]] || [[ "$TEST_SUITE" = "vmdb" ]]; then | ||
which bower || npm install -g bower | ||
bower install --allow-root -F --config.analytics=false | ||
source $TRAVIS_BUILD_DIR/tools/ci/setup_js_env.sh | ||
fi | ||
|
||
set +v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
which bower || npm install -g bower | ||
bower install --allow-root -F --config.analytics=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
echo "gem: --no-ri --no-rdoc --no-document" > ~/.gemrc | ||
travis_retry gem install bundler -v ">= 1.11.1" | ||
export BUNDLE_WITHOUT=development | ||
export BUNDLE_GEMFILE=${PWD}/Gemfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
echo "1" > REGION | ||
cp certs/v2_key.dev certs/v2_key | ||
cp config/database.pg.yml config/database.yml | ||
cp config/cable.yml.sample config/cable.yml | ||
psql -c "CREATE USER root SUPERUSER PASSWORD 'smartvm';" -U postgres |