collect_results.sh 427 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. # Save all important reports and artifacts into (project-root)/results
  3. # This folder will be saved by circleci and available after test runs.
  4. set -e
  5. #Enable '**' support
  6. shopt -s globstar
  7. TEST_RESULTS_DIR=./results
  8. mkdir -p $TEST_RESULTS_DIR >/dev/null 2>&1
  9. echo "saving test results"
  10. mkdir -p $TEST_RESULTS_DIR/results
  11. find workspace/**/build/test-results -name \*.xml -exec cp {} $TEST_RESULTS_DIR \;