Browse Source

Revert "remove fbsimctl"

This reverts commit 082a65d791.
Daniel Zlotin 7 years ago
parent
commit
aef9f0de76
4 changed files with 16 additions and 0 deletions
  1. 2
    0
      .travis.yml
  2. 7
    0
      CONTRIBUTING.md
  3. 4
    0
      scripts/env/installFbSimCtl.sh
  4. 3
    0
      scripts/test.e2e.ios.js

+ 2
- 0
.travis.yml View File

27
   - source ./scripts/env/installNode.sh
27
   - source ./scripts/env/installNode.sh
28
         # android sdk:
28
         # android sdk:
29
   - source ./scripts/env/installAndroidSDK.sh
29
   - source ./scripts/env/installAndroidSDK.sh
30
+        # fbsimctl:
31
+  - source ./scripts/env/installFbSimCtl.sh
30
 
32
 
31
 script:
33
 script:
32
   - set -e
34
   - set -e

+ 7
- 0
CONTRIBUTING.md View File

29
 curl --location https://dl.google.com/android/android-sdk_r24.4.1-macosx.zip | tar -x -z -C $HOME
29
 curl --location https://dl.google.com/android/android-sdk_r24.4.1-macosx.zip | tar -x -z -C $HOME
30
 ```
30
 ```
31
 
31
 
32
+* fbsimctl:
33
+
34
+```
35
+export CODE_SIGNING_REQUIRED=NO
36
+brew tap facebook/fb && brew install fbsimctl
37
+```
38
+
32
 ## Basics - Getting Started
39
 ## Basics - Getting Started
33
 
40
 
34
 Got your environment set up? Go ahead and clone the repo. (Fork it first so you can open a PR when you're ready.)
41
 Got your environment set up? Go ahead and clone the repo. (Fork it first so you can open a PR when you're ready.)

+ 4
- 0
scripts/env/installFbSimCtl.sh View File

1
+#!/bin/bash -e
2
+
3
+brew tap facebook/fb
4
+brew install fbsimctl

+ 3
- 0
scripts/test.e2e.ios.js View File

34
 }
34
 }
35
 
35
 
36
 function run() {
36
 function run() {
37
+  if (!exec.which(`fbsimctl`)) {
38
+    throw new Error(`fbsimctl must be installed: "brew tap facebook/fb && brew install fbsimctl"`);
39
+  }
37
   buildProjForDetox();
40
   buildProjForDetox();
38
   e2e();
41
   e2e();
39
 }
42
 }