Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Copy gh-unit xml reports from simulator sandbox
LAUNCH_DIR=$PWD
cd ../../
PROJECT_ROOT=$PWD
mkdir deployment
cd deployment
DEPLOYMENT_DIR=$PWD
cd "$LAUNCH_DIR"
TEST_PUBLISH_DIR=$DEPLOYMENT_DIR/test-results
rm -r -f "$TEST_PUBLISH_DIR"
mkdir -p "$TEST_PUBLISH_DIR"
cd ~/Library/Application\ Support/iPhone\ Simulator/6.0/Applications
for directory in $( ls -1 ); do
echo "$directory/tmp/test-results"
ls -1 "$directory/tmp/test-results"
for report in $( ls -1 "$directory/tmp/test-results/" ); do
cp "$directory/tmp/test-results/$report" "$TEST_PUBLISH_DIR"
done
echo "============================"
done
cd "$LAUNCH_DIR"
cd "$DEPLOYMENT_DIR"
zip -r test-results.zip test-results
cd "$LAUNCH_DIR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment