OLD | NEW |
1 #! /bin/bash | 1 #! /bin/bash |
2 | 2 |
3 # Update git submodules | 3 # Update git submodules |
4 git submodule init | 4 git submodule init |
5 git submodule update | 5 git submodule update |
6 | 6 |
7 # Set up the android environment | 7 # Set up the android environment |
8 source tools/android/setup.sh | 8 source tools/android/setup.sh |
9 | 9 |
10 function run_tests() { | 10 function run_tests() { |
11 ./run-tests.sh \ | 11 ./run-tests.sh \ |
12 -b Remote \ | 12 -b Remote \ |
13 --remote-executor http://localhost:9515 \ | 13 --remote-executor http://localhost:9515 \ |
14 --remote-caps="chromeOptions=androidPackage=$CHROME_APP" \ | 14 --remote-caps="chromeOptions=androidPackage=$CHROME_APP" \ |
15 --load-list load-list.txt \ | 15 --load-list load-list.txt \ |
16 --verbose || exit 1 | 16 --verbose || exit 1 |
17 } | 17 } |
18 | 18 |
19 # We split the test runs into two groups to avoid running out of memory in Travi
s. | 19 # We split the test runs into two groups to avoid running out of memory in Travi
s. |
20 echo "^[a].*" > load-list.txt | 20 echo "^[a].*" > load-list.txt |
21 run_tests | 21 run_tests |
22 echo "^[^a].*" > load-list.txt | 22 echo "^[^a].*" > load-list.txt |
23 run_tests | 23 run_tests |
24 | 24 |
25 echo "Run $ANDROID_DIR/stop.sh if finished." | 25 echo "Run $ANDROID_DIR/stop.sh if finished." |
OLD | NEW |