Browse Source

travis driven development

Daniel Zlotin 8 years ago
parent
commit
7656655fcc
2 changed files with 18 additions and 17 deletions
  1. 1
    0
      .travis.yml
  2. 17
    17
      playground/scripts/e2e.ios.js

+ 1
- 0
.travis.yml View File

@@ -39,6 +39,7 @@ script:
39 39
   - yarn run test-android
40 40
   - yarn run test-ios
41 41
   - yarn run release
42
+  - detoxAppBuildPath="ios/DerivedData/playground/Build/Products/Release_Detox-iphonesimulator/playground.app" BABEL_ENV=test ./node_modules/mocha/bin/mocha e2e --timeout 120000 --recursive --compilers js:babel-register
42 43
   - set +e
43 44
 
44 45
 after_script:

+ 17
- 17
playground/scripts/e2e.ios.js View File

@@ -46,24 +46,24 @@ function e2e() {
46 46
     shellUtils.exec.execSyncSilent(`watchman watch-del-all || true`);
47 47
     shellUtils.exec.kill(`detox-server`);
48 48
     shellUtils.exec.exec(`./node_modules/.bin/detox-server > ./detox-server.log 2>&1`);
49
-    const detoxAppBuildPath = `ios/DerivedData/playground/Build/Products/${release ? 'Release' : 'Debug'}_Detox-iphonesimulator/playground.app`;
50
-
51
-    shellUtils.exec.execSync(`detoxAppBuildPath="${detoxAppBuildPath}" 
52
-                              BABEL_ENV=test
53
-                              ./node_modules/mocha/bin/mocha e2e 
54
-                                --timeout 120000 
55
-                                --recursive
56
-                                --compilers js:babel-register`);
49
+    //const detoxAppBuildPath = `ios/DerivedData/playground/Build/Products/${release ? 'Release' : 'Debug'}_Detox-iphonesimulator/playground.app`;
50
+    //
51
+    //shellUtils.exec.execSync(`detoxAppBuildPath="${detoxAppBuildPath}"
52
+    //                          BABEL_ENV=test
53
+    //                          ./node_modules/mocha/bin/mocha e2e
54
+    //                            --timeout 120000
55
+    //                            --recursive
56
+    //                            --compilers js:babel-register`);
57 57
   } finally {
58
-    shellUtils.exec.execSync(`./scripts/detoxDebugFix.rb`);
59
-    shellUtils.exec.kill(`detox-server`);
60
-    if (release) {
61
-      shellUtils.exec.kill(`Simulator`);
62
-      shellUtils.exec.kill(`CoreSimulator`);
63
-    }
64
-    shellUtils.exec.execSync(`cat ./detox-server.log`);
65
-    shellUtils.exec.execSync(`rm -f ./detox-server.log`);
66
-    shellUtils.exec.execSync(`sleep 5`);
58
+    //shellUtils.exec.execSync(`./scripts/detoxDebugFix.rb`);
59
+    //shellUtils.exec.kill(`detox-server`);
60
+    //if (release) {
61
+    //  shellUtils.exec.kill(`Simulator`);
62
+    //  shellUtils.exec.kill(`CoreSimulator`);
63
+    //}
64
+    //shellUtils.exec.execSync(`cat ./detox-server.log`);
65
+    //shellUtils.exec.execSync(`rm -f ./detox-server.log`);
66
+    //shellUtils.exec.execSync(`sleep 5`);
67 67
   }
68 68
 }
69 69