forked from nstudio/nativescript-pulltorefresh
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
109 lines (106 loc) · 2.59 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
branches:
only:
- master
stages:
- lint
- build core
- webpack core
- tests
matrix:
include:
# Lint
- stage: lint
language: node_js
os: linux
node_js: "8"
script:
- cd src && npm run ci.tslint
- cd ../demo && npm run ci.tslint
# Build Core App
- stage: build core
env:
- BuildAndroid="28"
os: linux
language: android
jdk: oraclejdk8
before_install: nvm install 8.11.4
script:
- cd src && npm i
- npm run tsc && cd ../demo && tns build android
- env:
- OS="iOS12.0"
- Xcode="10.0"
os: osx
osx_image: xcode10
language: node_js
node_js: "8"
jdk: oraclejdk8
script:
- cd src && npm i
- npm run tsc && cd ../demo && tns build ios
# Webpack Core App
- stage: webpack core
env:
- OS="Android28"
os: linux
language: android
jdk: oraclejdk8
before_install: nvm install 8.11.4
script:
- cd demo && npm run build.plugin
- npm i && tns build android --bundle --env.uglify
- env:
- OS="iOS12.0"
- Xcode="10.0"
os: osx
osx_image: xcode10
language: node_js
node_js: "8"
jdk: oraclejdk8
script:
- cd demo && npm run build.plugin
- npm i && tns build ios --bundle --env.uglify
# Tests
- stage: tests
env:
- OS="Android28"
os: linux
language: android
dist: precise
jdk: oraclejdk8
before_script:
- echo no | android create avd --force -n test -t android-21 -b armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
before_install:
- nvm install 8
script:
- cd src && npm i
- npm run tsc && npm run tslint && cd ../demo && tns build android
- travis_wait travis_retry tns test android --justlaunch
- env:
- OS="iOS12.0"
os: osx
language: node_js
node_js: "8"
jdk: oraclejdk8
osx_image: xcode10
script:
- cd src && npm i && npm run tsc
- npm run tslint && cd ../demo && tns build ios
- travis_wait travis_retry tns test ios --justlaunch
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- android-28
- extra-android-m2repository
- sys-img-armeabi-v7a-android-21
before_script:
- "sudo pip install --upgrade pip"
- "sudo pip install six"
install:
- "echo no | npm install -g nativescript"
- "tns usage-reporting disable"
- "tns error-reporting disable"