Explorar el Código

fixed scripts

Daniel Zlotin hace 7 años
padre
commit
263f60397b

+ 0
- 48
playground/scripts/quickInstall.js Ver fichero

@@ -1,48 +0,0 @@
1
-const shellUtils = require('shell-utils');
2
-
3
-function installNavigation() {
4
-  shellUtils.exec.execSync(`mkdir -p ./node_modules/react-native-navigation`);
5
-  const navigationTar = shellUtils.exec.execSyncRead(`cd .. && npm pack`);
6
-  shellUtils.exec.execSync(`tar -xf ../${navigationTar} -C ./node_modules/react-native-navigation --strip 1`);
7
-  shellUtils.exec.execSync(`rm ../${navigationTar}`);
8
-
9
-  if (!process.env.CI) {
10
-    hardlinkNavigation();
11
-  }
12
-}
13
-
14
-function copyNodeModulesFromNavigation() {
15
-  shellUtils.exec.execSync(`cp -Rf ../node_modules ./`);
16
-}
17
-
18
-function removeHardlinks() {
19
-  shellUtils.exec.execSync(`hardlink ./node_modules/react-native-navigation/ -u || true`);
20
-}
21
-
22
-function removeNodeModules() {
23
-  shellUtils.exec.execSync(`rm -rf ./node_modules || true`);
24
-}
25
-
26
-function ignoreReactWarnings() {
27
-  shellUtils.exec.execSync(`./scripts/ignoreReactWarnings.rb`);
28
-}
29
-
30
-function hardlinkNavigation() {
31
-  shellUtils.exec.execSync(`hardlink ../ ./node_modules/react-native-navigation/ || true`);
32
-}
33
-
34
-function fixRN38() {
35
-  shellUtils.exec.execSync(`node ./scripts/fixRN38.js`);
36
-}
37
-
38
-function run() {
39
-  removeHardlinks();
40
-  removeNodeModules();
41
-  copyNodeModulesFromNavigation();
42
-  installNavigation();
43
-  ignoreReactWarnings();
44
-  fixRN38();
45
-}
46
-
47
-run();
48
-

playground/scripts/fixRN38.js → scripts/fixRN38.js Ver fichero


playground/scripts/ignoreReactWarnings.rb → scripts/ignoreReactWarnings.rb Ver fichero


+ 2
- 0
scripts/test.e2e.ios.js Ver fichero

@@ -56,6 +56,8 @@ function installFbsimctlIfNeeded() {
56 56
 }
57 57
 
58 58
 function run() {
59
+  shellUtils.exec.execSync(`./scripts/ignoreReactWarnings.rb`);
60
+  shellUtils.exec.execSync(`node ./scripts/fixRN38.js`);
59 61
   installFbsimctlIfNeeded();
60 62
   buildProjForDetox();
61 63
   e2e();

+ 2
- 0
scripts/test.unit.ios.js Ver fichero

@@ -17,6 +17,8 @@ function hasXcpretty() {
17 17
 }
18 18
 
19 19
 function run() {
20
+  shellUtils.exec.execSync(`./scripts/ignoreReactWarnings.rb`);
21
+  shellUtils.exec.execSync(`node ./scripts/fixRN38.js`);
20 22
   runWithXcprettyIfPossible(`RCT_NO_LAUNCH_PACKAGER=true
21 23
           cd ./playground/ios && xcodebuild
22 24
             build build-for-testing

+ 1
- 1
scripts/travis.sh Ver fichero

@@ -24,5 +24,5 @@ run_f "yarn run test-js"
24 24
 run_f "yarn run test-unit-android"
25 25
 run_f "yarn run test-unit-ios"
26 26
 run_f "yarn run test-e2e-android"
27
-run_f "yarn run test-e2e-ios"
27
+run_f "yarn run test-e2e-ios -- release"
28 28
 run_f "yarn run release"