Sfoglia il codice sorgente

fixing detox, added release scheme

Daniel Zlotin 7 anni fa
parent
commit
6732c59a4e

+ 0
- 2
playground/e2e/mocha.opts Vedi File

@@ -1,2 +0,0 @@
1
---recursive
2
---timeout 120000

+ 91
- 0
playground/ios/playground.xcodeproj/xcshareddata/xcschemes/playground_release.xcscheme Vedi File

@@ -0,0 +1,91 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<Scheme
3
+   LastUpgradeVersion = "0820"
4
+   version = "1.3">
5
+   <BuildAction
6
+      parallelizeBuildables = "YES"
7
+      buildImplicitDependencies = "YES">
8
+      <BuildActionEntries>
9
+         <BuildActionEntry
10
+            buildForTesting = "YES"
11
+            buildForRunning = "YES"
12
+            buildForProfiling = "YES"
13
+            buildForArchiving = "YES"
14
+            buildForAnalyzing = "YES">
15
+            <BuildableReference
16
+               BuildableIdentifier = "primary"
17
+               BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
18
+               BuildableName = "playground.app"
19
+               BlueprintName = "playground"
20
+               ReferencedContainer = "container:playground.xcodeproj">
21
+            </BuildableReference>
22
+         </BuildActionEntry>
23
+      </BuildActionEntries>
24
+   </BuildAction>
25
+   <TestAction
26
+      buildConfiguration = "Debug"
27
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
+      shouldUseLaunchSchemeArgsEnv = "YES">
30
+      <Testables>
31
+      </Testables>
32
+      <MacroExpansion>
33
+         <BuildableReference
34
+            BuildableIdentifier = "primary"
35
+            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
36
+            BuildableName = "playground.app"
37
+            BlueprintName = "playground"
38
+            ReferencedContainer = "container:playground.xcodeproj">
39
+         </BuildableReference>
40
+      </MacroExpansion>
41
+      <AdditionalOptions>
42
+      </AdditionalOptions>
43
+   </TestAction>
44
+   <LaunchAction
45
+      buildConfiguration = "Release"
46
+      selectedDebuggerIdentifier = ""
47
+      selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
48
+      launchStyle = "0"
49
+      useCustomWorkingDirectory = "NO"
50
+      ignoresPersistentStateOnLaunch = "NO"
51
+      debugDocumentVersioning = "YES"
52
+      debugServiceExtension = "internal"
53
+      allowLocationSimulation = "YES">
54
+      <BuildableProductRunnable
55
+         runnableDebuggingMode = "0">
56
+         <BuildableReference
57
+            BuildableIdentifier = "primary"
58
+            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
59
+            BuildableName = "playground.app"
60
+            BlueprintName = "playground"
61
+            ReferencedContainer = "container:playground.xcodeproj">
62
+         </BuildableReference>
63
+      </BuildableProductRunnable>
64
+      <AdditionalOptions>
65
+      </AdditionalOptions>
66
+   </LaunchAction>
67
+   <ProfileAction
68
+      buildConfiguration = "Release"
69
+      shouldUseLaunchSchemeArgsEnv = "YES"
70
+      savedToolIdentifier = ""
71
+      useCustomWorkingDirectory = "NO"
72
+      debugDocumentVersioning = "YES">
73
+      <BuildableProductRunnable
74
+         runnableDebuggingMode = "0">
75
+         <BuildableReference
76
+            BuildableIdentifier = "primary"
77
+            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
78
+            BuildableName = "playground.app"
79
+            BlueprintName = "playground"
80
+            ReferencedContainer = "container:playground.xcodeproj">
81
+         </BuildableReference>
82
+      </BuildableProductRunnable>
83
+   </ProfileAction>
84
+   <AnalyzeAction
85
+      buildConfiguration = "Debug">
86
+   </AnalyzeAction>
87
+   <ArchiveAction
88
+      buildConfiguration = "Release"
89
+      revealArchiveInOrganizer = "YES">
90
+   </ArchiveAction>
91
+</Scheme>

+ 91
- 0
playground/ios/playground.xcodeproj/xcshareddata/xcschemes/playground_release_Detox.xcscheme Vedi File

@@ -0,0 +1,91 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<Scheme
3
+   LastUpgradeVersion = "0820"
4
+   version = "1.3">
5
+   <BuildAction
6
+      parallelizeBuildables = "YES"
7
+      buildImplicitDependencies = "YES">
8
+      <BuildActionEntries>
9
+         <BuildActionEntry
10
+            buildForTesting = "YES"
11
+            buildForRunning = "YES"
12
+            buildForProfiling = "YES"
13
+            buildForArchiving = "YES"
14
+            buildForAnalyzing = "YES">
15
+            <BuildableReference
16
+               BuildableIdentifier = "primary"
17
+               BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
18
+               BuildableName = "playground.app"
19
+               BlueprintName = "playground"
20
+               ReferencedContainer = "container:playground.xcodeproj">
21
+            </BuildableReference>
22
+         </BuildActionEntry>
23
+      </BuildActionEntries>
24
+   </BuildAction>
25
+   <TestAction
26
+      buildConfiguration = "Debug"
27
+      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
+      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
+      shouldUseLaunchSchemeArgsEnv = "YES">
30
+      <Testables>
31
+      </Testables>
32
+      <MacroExpansion>
33
+         <BuildableReference
34
+            BuildableIdentifier = "primary"
35
+            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
36
+            BuildableName = "playground.app"
37
+            BlueprintName = "playground"
38
+            ReferencedContainer = "container:playground.xcodeproj">
39
+         </BuildableReference>
40
+      </MacroExpansion>
41
+      <AdditionalOptions>
42
+      </AdditionalOptions>
43
+   </TestAction>
44
+   <LaunchAction
45
+      buildConfiguration = "Release_Detox"
46
+      selectedDebuggerIdentifier = ""
47
+      selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
48
+      launchStyle = "0"
49
+      useCustomWorkingDirectory = "NO"
50
+      ignoresPersistentStateOnLaunch = "NO"
51
+      debugDocumentVersioning = "YES"
52
+      debugServiceExtension = "internal"
53
+      allowLocationSimulation = "YES">
54
+      <BuildableProductRunnable
55
+         runnableDebuggingMode = "0">
56
+         <BuildableReference
57
+            BuildableIdentifier = "primary"
58
+            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
59
+            BuildableName = "playground.app"
60
+            BlueprintName = "playground"
61
+            ReferencedContainer = "container:playground.xcodeproj">
62
+         </BuildableReference>
63
+      </BuildableProductRunnable>
64
+      <AdditionalOptions>
65
+      </AdditionalOptions>
66
+   </LaunchAction>
67
+   <ProfileAction
68
+      buildConfiguration = "Release"
69
+      shouldUseLaunchSchemeArgsEnv = "YES"
70
+      savedToolIdentifier = ""
71
+      useCustomWorkingDirectory = "NO"
72
+      debugDocumentVersioning = "YES">
73
+      <BuildableProductRunnable
74
+         runnableDebuggingMode = "0">
75
+         <BuildableReference
76
+            BuildableIdentifier = "primary"
77
+            BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
78
+            BuildableName = "playground.app"
79
+            BlueprintName = "playground"
80
+            ReferencedContainer = "container:playground.xcodeproj">
81
+         </BuildableReference>
82
+      </BuildableProductRunnable>
83
+   </ProfileAction>
84
+   <AnalyzeAction
85
+      buildConfiguration = "Debug">
86
+   </AnalyzeAction>
87
+   <ArchiveAction
88
+      buildConfiguration = "Release"
89
+      revealArchiveInOrganizer = "YES">
90
+   </ArchiveAction>
91
+</Scheme>

+ 2
- 1
playground/package.json Vedi File

@@ -6,7 +6,8 @@
6 6
     "postinstall": "node ./scripts/postinstall.js",
7 7
     "start": "adb reverse tcp:8081 tcp:8081; watchman watch-del-all; react-native start --reset-cache",
8 8
     "xcode": "open ios/playground.xcodeproj",
9
-    "android": "cd android && ./gradlew installDebug"
9
+    "android": "cd android && ./gradlew installDebug",
10
+    "e2e": "node ./scripts/e2e.ios.js"
10 11
   },
11 12
   "dependencies": {
12 13
     "react-native": "0.38.0",

+ 1
- 1
playground/scripts/e2e.ios.js Vedi File

@@ -25,7 +25,7 @@ function e2e() {
25 25
   try {
26 26
     kill(`detox-server`);
27 27
     cp.exec(`./node_modules/.bin/detox-server > ./detox-server.log 2>&1`);
28
-    exec(`BABEL_ENV=test ./node_modules/mocha/bin/mocha e2e --opts ./e2e/mocha.opts`);
28
+    exec(`BABEL_ENV=test ./node_modules/mocha/bin/mocha e2e --recursive --timeout 120000`);
29 29
   } finally {
30 30
     kill(`detox-server`);
31 31
     kill(`Simulator`);