Skip to content
Permalink
Browse files

Make sure if assets are precompiled its error code is passed to Travis

  • Loading branch information
LocoDelAssembly committed Apr 7, 2019
1 parent 1ad1d1a commit fa0e45309d5f6caa5d3791d596a1adfa1ebf7315
Showing with 2 additions and 1 deletion.
  1. +2 −1 .travis.yml
@@ -71,9 +71,10 @@ before_script:
- export BEGIN_INDEX=$[($SPEC_COUNT + $TEST_WORKERS - 1) / $TEST_WORKERS * $TEST_WORKER + 1]
- export END_INDEX=$[($SPEC_COUNT + $TEST_WORKERS - 1) / $TEST_WORKERS * ($TEST_WORKER + 1)]
- export SPECS_TO_RUN=$(echo $SPEC_FILES | cut -d " " -f $BEGIN_INDEX-$END_INDEX)
- echo $SPECS_TO_RUN | grep -q "spec/features/"; export PRECOMPILE_ASSETS=$?
script:
- echo ===[TEST_WORKER=$TEST_WORKER script $(date -u +%Y%m%d-%H%M%S)]===
- echo $SPECS_TO_RUN | grep -q "spec/features/" && bundle exec rake assets:precompile; true
- (($PRECOMPILE_ASSETS)) || bundle exec rake assets:precompile
# - bundle exec parallel_test spec/ -n 6 --only-group $TEST_GROUP --group-by filesize --type rspec
- echo ===[TEST_WORKER=$TEST_WORKER rspec $(date -u +%Y%m%d-%H%M%S)]===
- bundle exec rspec $SPECS_TO_RUN

0 comments on commit fa0e453

Please sign in to comment.
You can’t perform that action at this time.