forked from zulip/zulip-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis-e2e.yml
66 lines (59 loc) · 1.91 KB
/
.travis-e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
language: objective-c
osx_image: xcode8.3
xcode_sdk: iphonesimulator11.0
sudo: required
env:
global:
- NODE_VERSION=stable
- COVERALLS_REPO_TOKEN=4eYQDtWoBJlDz2QkxoQ2UcnmJFcOB7zkv
install:
- brew update
- sudo launchctl limit maxfiles 2048 unlimited
- sudo ulimit -n 10000
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
- export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- brew install watchman
- brew install yarn
- brew tap facebook/fb
# START HACK This is a hack since the homebrew version updates daily. we install a
# specific working version. In the future install a version of fbsimctl
# that works.
- git clone https://github.com/facebook/FBSimulatorControl.git
- cd FBSimulatorControl && git checkout 2a461c4e31f12b29974a5a6d184126c2526c62d1 && ./build.sh fbsimctl build output && cd ../
- mv FBSimulatorControl/output/Frameworks/* /usr/local/Frameworks/
- mv FBSimulatorControl/output/bin/* /usr/local/bin/
# END HACK
# Add those lines again once the hack is removed. Remove the --HEAD flag.
#- brew tap facebook/fb
#- export CODE_SIGNING_REQUIRED=NO && brew install fbsimctl --HEAD
- export CODE_SIGNING_REQUIRED=NO
- brew tap wix/brew
- brew install applesimutils --HEAD
- yarn install
- gem install xcpretty >/dev/null 2>&1
- npm install -g react-native-cli >/dev/null 2>&1
- npm install -g detox-cli >/dev/null 2>&1
before_script:
- set -o pipefail && yarn run build:ios-release | xcpretty -t
notifications:
email: false
webhooks:
urls:
- https://zulip.org/zulipbot/travis
on_success: always
on_failure: always
script:
- travis_wait yarn run test:e2e
- yarn run test
cache:
yarn: true
directories:
- node_modules
- $HOME/Library/Caches/Homebrew
addons:
postgresql: "9.3"
apt:
packages:
- iproute2