Explorar el Código

android unit test works

Daniel Zlotin hace 7 años
padre
commit
3514bce6e8
Se han modificado 4 ficheros con 11 adiciones y 13 borrados
  1. 8
    9
      .npmignore
  2. 0
    1
      .travis.yml
  3. 1
    1
      lib/android/build.gradle
  4. 2
    2
      scripts/test.android.js

+ 8
- 9
.npmignore Ver fichero

@@ -1,12 +1,11 @@
1
-playground
2
-integration
3
-
4
-
5
-
6
-
7
-
8
-
9
-
1
+AndroidE2E/
2
+coverage/
3
+e2e/
4
+integration/
5
+playground/
6
+scripts/
7
+.travis.yml
8
+wallaby.js
10 9
 
11 10
 
12 11
 #################

+ 0
- 1
.travis.yml Ver fichero

@@ -25,7 +25,6 @@ before_cache:
25 25
   - rm -rf $HOME/.gradle/caches/*/plugin-resolution/
26 26
 
27 27
 install:
28
-  - sysctl -n machdep.cpu.brand_string
29 28
   - curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
30 29
   - export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
31 30
   - nvm install $NODE_VERSION

+ 1
- 1
lib/android/build.gradle Ver fichero

@@ -18,7 +18,7 @@ allprojects {
18 18
         jcenter()
19 19
         maven {
20 20
             // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
21
-            url "$rootDir/../node_modules/react-native/android"
21
+            url "$rootDir/../../node_modules/react-native/android"
22 22
         }
23 23
     }
24 24
 }

+ 2
- 2
scripts/test.android.js Ver fichero

@@ -5,10 +5,10 @@ function run() {
5 5
     exec.execSync(`./scripts/installAndroidSDK.sh`);
6 6
   }
7 7
 
8
-  exec.execSync(`cd android && ./gradlew clean testDebugUnitTest`);
8
+  exec.execSync(`cd lib/android && ./gradlew clean testDebugUnitTest`);
9 9
 
10 10
   if (!process.env.CI) {
11
-    exec.execSync(`cd playground && yarn run e2e-android`);
11
+    // exec.execSync(`cd playground && yarn run e2e-android`);
12 12
   }
13 13
 }
14 14