OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 set -e | 3 set -e |
4 export ANDROID_HOME="/home/vagrant/android-sdk-linux" | 4 export ANDROID_HOME="/home/vagrant/android-sdk-linux" |
| 5 mkdir -p "/home/vagrant/build/temp" |
| 6 export ANDROID_TMP="/home/vagrant/build/temp" |
5 | 7 |
6 cd ~/build/libadblockplus-android-tests | 8 cd ~/build/src/ |
| 9 |
7 # Start emulator | 10 # Start emulator |
8 /vagrant/vagrant-emulator.sh start | 11 echo "Starting emulator for testing..." |
| 12 /vagrant/vagrant-emulator.sh start avd-armeabi-v7a || echo "Failed to start emul
ator" |
| 13 #/vagrant/vagrant-emulator.sh start avd-x86 |
| 14 |
9 # Build, install and run tests | 15 # Build, install and run tests |
10 ant instrument install test | 16 echo "Building and running tests..." |
11 # TODO ant does not recognize failed tests | 17 ./gradlew connectedDebugAndroidTest || echo "Failed to build the tests of tests
failed" |
| 18 |
| 19 echo "Done" |
12 | 20 |
13 # Stop emulator | 21 # Stop emulator |
14 /vagrant/vagrant-emulator.sh stop | 22 echo "Stopping emulator for testing..." |
15 | 23 /vagrant/vagrant-emulator.sh stop avd-armeabi-v7a |
| 24 #/vagrant/vagrant-emulator.sh stop avd-x86 |
OLD | NEW |