Merge pull request #2991 from betagouv/ci-print-test-files

circleci: print files used by the shell command
This commit is contained in:
Pierre de La Morinerie 2018-11-14 14:49:28 +01:00 committed by GitHub
commit 10e56a30eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,11 +74,13 @@ jobs:
DATABASE_URL: "postgres://tps_test@localhost:5432/tps_test" DATABASE_URL: "postgres://tps_test@localhost:5432/tps_test"
name: Run Tests, Splitted by Timings name: Run Tests, Splitted by Timings
command: | command: |
bundle exec rspec --profile 10 \ COMMAND="bundle exec rspec --profile 10 \
--format RspecJunitFormatter \ --format RspecJunitFormatter \
--out ~/test_results/rspec.xml \ --out ~/test_results/rspec.xml \
--format progress \ --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: - store_test_results:
path: ~/test_results/rspec.xml path: ~/test_results/rspec.xml
lint: lint: