Skip to content

Commit

Permalink
Merge pull request #5151 from ChrisBr/ci/fix-travis
Browse files Browse the repository at this point in the history
[ci] Only remove .bundle & vendor dir outside of CI
  • Loading branch information
bgeuken committed Jun 18, 2018
2 parents bf314bb + ac7e914 commit 9d36fb8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion contrib/start_lint
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ echo "Preparing application..."
bundle exec rake dev:prepare RAILS_ENV=test
echo "Running linter..."
bundle exec rake dev:lint RAILS_ENV=test
rm -rf .bundle vendor/bundle
if ! [ -z "$CI" ]; then
rm -rf .bundle vendor/bundle
fi
4 changes: 3 additions & 1 deletion contrib/start_minitest
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ bundle exec rake dev:bootstrap[old_test_suite] RAILS_ENV=test
echo "Running api test suite..."
export NO_MEMCACHED=1
bundle exec rake test:api
rm -rf .bundle vendor/bundle
if ! [ -z "$CI" ]; then
rm -rf .bundle vendor/bundle
fi
4 changes: 3 additions & 1 deletion contrib/start_rspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ echo "Preparing application..."
bundle exec rake dev:bootstrap RAILS_ENV=test
echo "Running rspec..."
bundle exec rspec
rm -rf .bundle vendor/bundle
if ! [ -z "$CI" ]; then
rm -rf .bundle vendor/bundle
fi
4 changes: 3 additions & 1 deletion contrib/start_spider
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ bundle exec rake dev:bootstrap[old_test_suite] RAILS_ENV=test
echo "Running spider test..."
export NO_MEMCACHED=1
bundle exec rake test:spider
rm -rf .bundle vendor/bundle
if ! [ -z "$CI" ]; then
rm -rf .bundle vendor/bundle
fi

0 comments on commit 9d36fb8

Please sign in to comment.