circleci: print files used by the shell command

This allow to reproduce failures due to tests order more easily.
This commit is contained in:
Pierre de La Morinerie 2018-11-14 11:13:36 +00:00
parent bccb86144e
commit d0bac997cb

View file

@ -74,11 +74,13 @@ jobs:
DATABASE_URL: "postgres://tps_test@localhost:5432/tps_test"
name: Run Tests, Splitted by Timings
command: |
bundle exec rspec --profile 10 \
COMMAND="bundle exec rspec --profile 10 \
--format RspecJunitFormatter \
--out ~/test_results/rspec.xml \
--format progress \
$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)
$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
echo $COMMAND
eval $COMMAND
- store_test_results:
path: ~/test_results/rspec.xml
lint: