forked from flexn-io/renative
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (60 loc) · 2.16 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# 2
jobs:
include:
- stage: test
dist: trusty
language: node_js
node_js: 10.15.3
install:
- rm -rf ./node_modules && rm -rf ./package-lock.json
- mkdir /home/travis/.rnv
- echo '{"workspaces":{"rnv":{"path":"/home/travis/.rnv"}}}' > /home/travis/.rnv/renative.workspaces.json
- npm i > /dev/null 2>&1
- cd packages/rnv
- npm i > /dev/null 2>&1
- npm run build:dev
- npm link
script: npm run test:setup
- language: android
sudo: required
jdk: oraclejdk8
android:
components:
- tools
- build-tools-28.0.3
- extra-google-m2repository
- extra-android-m2repository
- platform-tools
- android-28
- sys-img-x86-android-28
before_install:
- curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
- sudo apt-get install -y nodejs
- rm -rf ./node_modules && rm -rf ./package-lock.json
- npm i > /dev/null 2>&1
- cd packages/rnv
- npm i > /dev/null 2>&1
- npm run build:dev
- sudo npm link > /dev/null 2>&1
- mkdir /home/travis/.rnv
- echo '{"sdks":{"ANDROID_SDK":"/usr/local/android-sdk"},"defaultTargets":{"android":"Nexus_5X_API_26","androidtv":"Android_TV_720p_API_22","androidwear":"Android_Wear_Round_API_28"}}' > /home/travis/.rnv/renative.json
- echo '{"workspaces":{"rnv":{"path":"/home/travis/.rnv"}}}' > /home/travis/.rnv/renative.workspaces.json
- yes | sdkmanager "emulator"
script: npm run test:integration
- language: node_js
node_js: 10.15.3
os: osx
osx_image: xcode10.2
install:
- rm -rf ./node_modules && rm -rf ./package-lock.json
- mkdir /Users/travis/.rnv
- echo '{"sdks":{},"defaultTargets":{}}' > /Users/travis/.rnv/renative.json
- echo '{"workspaces":{"rnv":{"path":"/Users/travis/.rnv"}}}' > /Users/travis/.rnv/renative.workspaces.json
- npm i > /dev/null 2>&1
- cd packages/rnv
- npm i > /dev/null 2>&1
- npm run build:dev
- npm link
script: npm run test:ios
stages:
- test