-
Notifications
You must be signed in to change notification settings - Fork 69
/
.travis.yml
47 lines (40 loc) · 1.11 KB
/
.travis.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
language: node_js
node_js: 8.9.4
cache:
directories:
- node_modules
- examples/Basic/node_modules
matrix:
include:
- language: objective-c
osx_image: xcode9.4
xcode_sdk: iphonesimulator11.0
addons:
artifacts: true
env:
global:
- NODE_VERSION=stable
- CODE_SIGNING_REQUIRED=NO
install:
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/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 tap wix/brew
- brew install wix/brew/applesimutils
- npm install -g react-native-cli
- npm install -g detox-cli
- npm install
- cd examples/Basic && npm install
- cd ..
- cd ..
script:
- npm run test
- cd examples/Basic
- detox build > /dev/null 2>&1
- detox clean-framework-cache && detox build-framework-cache
- react-native start &
- detox test -l verbose --cleanup
after_failure:
- tail -F $HOME/Library/Developer/CoreSimulator/Devices/8ABF0B4E-0370-4D7D-B9F6-E508760687A5/data/tmp/detox.last_launch_app_log.err