Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
Merge pull request #170 from justarrived/ci-build-enhancements
Browse files Browse the repository at this point in the history
Ci build enhancements
  • Loading branch information
buren committed Feb 4, 2016
2 parents 1217fa5 + 5f22ebe commit 399a9c7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
14 changes: 10 additions & 4 deletions script/bootstrap
Expand Up @@ -7,6 +7,8 @@ cd "$(dirname "$0")/.."
# script/bootstrap: Resolve all dependencies that the application requires to
# run.

CI_BUILD=${CI_BUILD-false}

echo -e '\n== Bootstrapping dependencies =='

[[ $(ruby -v) == 'ruby 2.3'* ]] || {
Expand All @@ -20,13 +22,17 @@ which bundle 2>&1 >/dev/null || {
}

which rubocop 2>&1 >/dev/null || {
echo -e '\n== Installing rubocop =='
gem install rubocop
if [[ $CI_BUILD != true ]]; then
echo -e '\n== Installing rubocop =='
gem install rubocop
fi
}

which foreman 2>&1 >/dev/null || {
echo -e '\n== Installing foreman =='
gem install foreman
if [[ $CI_BUILD != true ]]; then
echo -e '\n== Installing foreman =='
gem install foreman
fi
}

echo -e '\n== Installing gem dependencies =='
Expand Down
3 changes: 3 additions & 0 deletions script/cibuild
Expand Up @@ -6,6 +6,9 @@ cd "$(dirname "$0")/.."

# script/cibuild: Run the test suite from CI.

# Allow called scripts to detect that its being run by CI
export CI_BUILD=true

echo -e '\n== Running cibuild =='
export RAILS_ENV=test
export RAKE_ENV=test
Expand Down

0 comments on commit 399a9c7

Please sign in to comment.