Skip to content

Instantly share code, notes, and snippets.

@dodikk
Created September 26, 2012 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dodikk/3787108 to your computer and use it in GitHub Desktop.
Save dodikk/3787108 to your computer and use it in GitHub Desktop.
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