forked from spree/spree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created function for removing Gemfile.lock + removed dash from rake t…
…asks Related to spree#3205
- Loading branch information
Showing
2 changed files
with
14 additions
and
9 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
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,12 +1,17 @@ | ||
alias set_gemfile='export BUNDLE_GEMFILE="`pwd`/Gemfile"' | ||
# Remove Gemfile.lock if it exists | ||
function rm_gemfile_lock(){ | ||
if [ -e "Gemfile.lock" ] | ||
then | ||
echo "Removing Gemfile.lock..." | ||
rm Gemfile.lock | ||
fi | ||
bundle check || bundle install | ||
bundle exec rake test_app | ||
cd api; set_gemfile; rm Gemfile.lock; bundle install; bundle exec rspec spec | ||
cd ../backend; set_gemfile; rm Gemfile.lock; bundle install; bundle exec rspec spec | ||
cd ../core; set_gemfile; rm Gemfile.lock; bundle install; bundle exec rspec spec | ||
cd ../frontend; set_gemfile; rm Gemfile.lock; bundle install; bundle exec rspec spec | ||
fi | ||
} | ||
|
||
alias set_gemfile='export BUNDLE_GEMFILE="`pwd`/Gemfile"' | ||
rm_gemfile_lock | ||
bundle check || bundle install | ||
bundle exec rake test_app | ||
cd api; set_gemfile; rm_gemfile_lock; bundle install; bundle exec rspec spec | ||
cd ../backend; set_gemfile; rm_gemfile_lock; bundle install; bundle exec rspec spec | ||
cd ../core; set_gemfile; rm_gemfile_lock; bundle install; bundle exec rspec spec | ||
cd ../frontend; set_gemfile; rm_gemfile_lock; bundle install; bundle exec rspec spec |