Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: vagrant-test.sh

Issue 29448564: Issue 5277 - Prepare Vagrant files for CI (Closed)
Patch Set: see the changes in commit message https://github.com/4ntoine/libadblockplus-android-ci/commit/d44b6f71a6efb02d46fb594e823c6e810ba79a4f Created May 25, 2017, 1:50 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « vagrant-provision.sh ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« no previous file with comments | « vagrant-provision.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld