|
@@ -1,30 +0,0 @@
|
1
|
|
-const _ = require('lodash');
|
2
|
|
-const shellUtils = require('shell-utils');
|
3
|
|
-const fs = require('fs');
|
4
|
|
-
|
5
|
|
-function runEmulator() {
|
6
|
|
- // shellUtils.exec.execSync(`echo no | android create avd --force -n test -t android-25 --abi armeabi-v7a`);
|
7
|
|
- // shellUtils.exec.execSync(`emulator -avd test -no-skin -no-audio -no-window &`);
|
8
|
|
- // shellUtils.exec.execSync(`android-wait-for-emulator`);
|
9
|
|
- // shellUtils.exec.execSync(`adb shell input keyevent 82 &`);
|
10
|
|
-}
|
11
|
|
-
|
12
|
|
-function e2e() {
|
13
|
|
- shellUtils.exec.execSync(`yarn run uninstall-android`);
|
14
|
|
- shellUtils.exec.execSync(`yarn run android`);
|
15
|
|
- shellUtils.exec.execSync(`cd ../AndroidE2E/ && ./gradlew connectedDebugAndroidTest`);
|
16
|
|
-}
|
17
|
|
-
|
18
|
|
-function run() {
|
19
|
|
- if (process.env.CI) {
|
20
|
|
- return;
|
21
|
|
- }
|
22
|
|
- shellUtils.exec.execSync(`echo 'travis_fold:start:android-e2e'`);
|
23
|
|
- try {
|
24
|
|
- e2e();
|
25
|
|
- } finally {
|
26
|
|
- shellUtils.exec.execSync(`echo 'travis_fold:end:android-e2e'`);
|
27
|
|
- }
|
28
|
|
-}
|
29
|
|
-
|
30
|
|
-run();
|