-
Notifications
You must be signed in to change notification settings - Fork 20
/
.travis.yml
116 lines (109 loc) · 3.13 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
110
111
112
113
114
115
116
env:
global:
- EMULATOR_NAME=test
- ANDROID_API_LEVEL=28
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
- ANDROID_ABI=armeabi-v7a
- ADB_INSTALL_TIMEOUT=20 # minutes (2 minutes by default)
matrix:
include:
- stage: "Lint"
language: node_js
os: linux
node_js: "10"
before_install:
- cd publish && npm run setup-dev-env && cd ..
script: cd src && npm run ci.tslint && npm run build && cd ../demo && npm run ci.tslint && cd ../demo-angular && npm run ci.tslint
- stage: "Webpack and Build"
os: osx
env:
- Webpack="iOS"
- Type="VanillaJS"
osx_image: xcode10.0
language: node_js
node_js: "10"
jdk: oraclejdk8
before_script:
- gem install cocoapods
- gem install xcodeproj
- brew install xcproj
- pod repo update
- sudo pip install six
before_install:
- cd publish && npm run setup-dev-env && cd ..
- cd src && npm i && cd ..
script: cd demo && travis_wait travis_retry npm run build-ios-bundle
- os: osx
env:
- Webpack="iOS"
- Type="Angular"
osx_image: xcode10.0
language: node_js
node_js: "10"
jdk: oraclejdk8
before_script:
- gem install cocoapods
- gem install xcodeproj
- brew install xcproj
- pod repo update
- sudo pip install six
before_install:
- cd publish && npm run setup-dev-env && cd ..
- cd src && npm i && cd ..
script: cd demo-angular && travis_wait travis_retry npm run build-ios-bundle
- language: android
os: linux
env:
- Webpack="Android"
- Type="VanillaJS"
jdk: oraclejdk8
before_install:
- nvm install 10
- cd publish && npm run setup-dev-env && cd ..
- cd src && npm i && cd ..
script: cd demo && travis_wait travis_retry npm run build-android-bundle
- language: android
os: linux
env:
- Webpack="Android"
- Type="Angular"
jdk: oraclejdk8
before_install:
- nvm install 10
- cd publish && npm run setup-dev-env && cd ..
- cd src && npm i && cd ..
script: cd demo-angular && travis_wait travis_retry npm run build-android-bundle
android:
components:
- platform-tools
- tools # to install Android SDK tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- android-$ANDROID_API_LEVEL
# For Google APIs
- addon-google_apis-google-$ANDROID_API_LEVEL
# Google Play Services
- extra-google-google_play_services
# Support library
- extra-android-support
# Latest artifacts in local repository
- extra-google-m2repository
- extra-android-m2repository
# Specify at least one system image
- sys-img-armeabi-v7a-android-21
- sys-img-armeabi-v7a-android-$ANDROID_API_LEVEL
before_install:
- sudo pip install --upgrade pip
- sudo pip install six
licenses:
- ".+"
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- .nvm
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
install:
- echo no | npm install -g nativescript
- tns usage-reporting disable
- tns error-reporting disable