Skip to content

Commit

Permalink
[ci] Return test exit status from Travis start scripts
Browse files Browse the repository at this point in the history
otherwise the container exits successfully. This makes it work in Travis and locally.

Co-authored-by: Victor Pereira <vpereirabr@gmail.com>
  • Loading branch information
ChrisBr and vpereira committed Jun 19, 2018
1 parent 9ac1e06 commit f7962f6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions contrib/start_lint
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ echo "Preparing application..."
bundle exec rake dev:prepare RAILS_ENV=test
echo "Running linter..."
bundle exec rake dev:lint RAILS_ENV=test
if ! [ -z "$CI" ]; then
rm -rf .bundle vendor/bundle
fi
tmp_exit=$?
rm -rf .bundle vendor/bundle
exit $tmp_exit
6 changes: 3 additions & 3 deletions contrib/start_minitest
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +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
if ! [ -z "$CI" ]; then
rm -rf .bundle vendor/bundle
fi
tmp_exit=$?
rm -rf .bundle vendor/bundle
exit $tmp_exit
6 changes: 3 additions & 3 deletions contrib/start_rspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ echo "Preparing application..."
bundle exec rake dev:bootstrap RAILS_ENV=test
echo "Running rspec..."
bundle exec rspec
if ! [ -z "$CI" ]; then
rm -rf .bundle vendor/bundle
fi
tmp_exit=$?
rm -rf .bundle vendor/bundle
exit $tmp_exit
6 changes: 3 additions & 3 deletions contrib/start_spider
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +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
if ! [ -z "$CI" ]; then
rm -rf .bundle vendor/bundle
fi
tmp_exit=$?
rm -rf .bundle vendor/bundle
exit $tmp_exit

0 comments on commit f7962f6

Please sign in to comment.