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,6 +27,8 @@ install:
27 27
   - source ./scripts/env/installNode.sh
28 28
         # android sdk:
29 29
   - source ./scripts/env/installAndroidSDK.sh
30
+        # fbsimctl:
31
+  - source ./scripts/env/installFbSimCtl.sh
30 32
 
31 33
 script:
32 34
   - set -e

+ 7
- 0
CONTRIBUTING.md View File

@@ -29,6 +29,13 @@ echo "Downloading Android SDK"
29 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 39
 ## Basics - Getting Started
33 40
 
34 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

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

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

@@ -34,6 +34,9 @@ function e2e() {
34 34
 }
35 35
 
36 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 40
   buildProjForDetox();
38 41
   e2e();
39 42
 }