Created
September 26, 2012 09:58
-
-
Save dodikk/3787108 to your computer and use it in GitHub Desktop.
Copy gh-unit xml reports from simulator sandbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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