1 # Script to update robolectric with an up to date snapshot. 2 # 3 # 1) Build and install Robolectric to your local mvn repository. 4 # ./install-robolectric.sh 5 # 6 # 2) Create an Android repo 7 # 8 # 3) Run this script from $ANDROID_ROOT_DIR 9 # ./external/robolectric/v3/update_robolectric.sh 10 11 MVN_ROOT=$HOME/.m2/repository 12 ROBOLECTRIC_DIR=external/robolectric/v3 13 14 cp $MVN_ROOT/org/robolectric/robolectric/3.1-SNAPSHOT/robolectric-3.1-SNAPSHOT.jar $ROBOLECTRIC_DIR/. 15 cp $MVN_ROOT/org/robolectric/robolectric-annotations/3.1-SNAPSHOT/robolectric-annotations-3.1-SNAPSHOT.jar $ROBOLECTRIC_DIR/. 16 cp $MVN_ROOT/org/robolectric/robolectric-processor/3.1-SNAPSHOT/robolectric-processor-3.1-SNAPSHOT.jar $ROBOLECTRIC_DIR/. 17 cp $MVN_ROOT/org/robolectric/robolectric-resources/3.1-SNAPSHOT/robolectric-resources-3.1-SNAPSHOT.jar $ROBOLECTRIC_DIR/. 18 cp $MVN_ROOT/org/robolectric/robolectric-utils/3.1-SNAPSHOT/robolectric-utils-3.1-SNAPSHOT.jar $ROBOLECTRIC_DIR/. 19 20 cp $MVN_ROOT/org/robolectric/shadows-httpclient/3.1-SNAPSHOT/shadows-httpclient-3.1-SNAPSHOT.jar $ROBOLECTRIC_DIR/. 21 cp $MVN_ROOT/org/robolectric/shadows-support-v4/3.1-SNAPSHOT/shadows-support-v4-3.1-SNAPSHOT.jar $ROBOLECTRIC_DIR/. 22 cp $MVN_ROOT/org/robolectric/shadows-multidex/3.1-SNAPSHOT/shadows-multidex-3.1-SNAPSHOT.jar $ROBOLECTRIC_DIR/. 23 24 cp $MVN_ROOT/org/robolectric/shadows-play-services/3.1-SNAPSHOT/shadows-play-services-3.1-SNAPSHOT.jar $ROBOLECTRIC_DIR/. 25 26 cp $MVN_ROOT/org/robolectric/shadows-core/3.1-SNAPSHOT/shadows-core-3.1-SNAPSHOT-16.jar $ROBOLECTRIC_DIR/runtime/. 27 cp $MVN_ROOT/org/robolectric/shadows-core/3.1-SNAPSHOT/shadows-core-3.1-SNAPSHOT-17.jar $ROBOLECTRIC_DIR/runtime/. 28 cp $MVN_ROOT/org/robolectric/shadows-core/3.1-SNAPSHOT/shadows-core-3.1-SNAPSHOT-18.jar $ROBOLECTRIC_DIR/runtime/. 29 cp $MVN_ROOT/org/robolectric/shadows-core/3.1-SNAPSHOT/shadows-core-3.1-SNAPSHOT-19.jar $ROBOLECTRIC_DIR/runtime/. 30 cp $MVN_ROOT/org/robolectric/shadows-core/3.1-SNAPSHOT/shadows-core-3.1-SNAPSHOT-21.jar $ROBOLECTRIC_DIR/runtime/. 31 cp $MVN_ROOT/org/robolectric/shadows-core/3.1-SNAPSHOT/shadows-core-3.1-SNAPSHOT-22.jar $ROBOLECTRIC_DIR/runtime/. 32