forked from PeterStaev/nativescript-azure-mobile-apps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
135 lines (123 loc) · 3.36 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
sudo: false
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- android-22 # needed for test vms
- android-23
- android-28
- extra-android-m2repository
- sys-img-armeabi-v7a-android-22
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
- echo no | npm install -g grunt-cli
- npm install
- grunt compile
matrix:
include:
- stage: lint
language: node_js
os: linux
node_js: "8"
script: grunt lint
- stage: build
language: android
os: linux
env:
- Android="28"
jdk: oraclejdk8
before_install: nvm install 8.11.3
script: "grunt ci:build:android"
- stage: build
os: osx
env:
- iOS="10.3"
- Xcode="9.4"
osx_image: xcode9.4
language: node_js
node_js: "8"
jdk: oraclejdk8
before_install:
- pip install --upgrade pip
- pip install --user --upgrade matplotlib
- pip install six
- pod repo update
script: "grunt ci:build:ios"
- stage: webpack
language: android
os: linux
env:
- Android="28"
- Platform="Android"
jdk: oraclejdk8
before_install: nvm install 8.11.3
script: "grunt ci:webpack:android"
- stage: webpack
os: osx
env:
- iOS="10.3"
- Xcode="9.4"
- Platform="iOS"
osx_image: xcode9.4
language: node_js
node_js: "8"
jdk: oraclejdk8
before_install:
- pip install --upgrade pip
- pip install --user --upgrade matplotlib
- pip install six
- pod repo update
script: "grunt ci:webpack:ios"
- stage: test
language: android
os: linux
env:
- Android="25"
jdk: oraclejdk8
before_install: nvm install 8.11.3
before_script:
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
- emulator -avd test -no-audio -no-window &
- android-wait-for-emulator
script: cd demo && tns deploy android --justlaunch && tns test android --justlaunch && cd ..
- stage: test
language: objective-c
os: osx
osx_image: xcode9.4
xcode_sdk: iphonesimulator9.3
before_install:
- pip install --upgrade pip
- pip install --user --upgrade matplotlib
- pip install six
- export LANG=en_US.UTF-8
- brew update
- open /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app --args -CurrentDeviceUDID "560575EC-0A13-4BBC-98F0-7698EE99475E"
- nvm install 8
- brew install xcproj
- gem install xcodeproj
- gem install cocoapods
- pod repo update
script: cd demo && tns deploy ios --justlaunch && tns test ios --justlaunch && cd ..
- stage: deploy
if: branch = release
language: node_js
node_js: "8"
before_deploy:
- cd bin/dist
deploy:
provider: npm
email: "[email protected]"
api_key: "1e3e11f1-4af2-4a69-af04-3acf8b352d07"
skip_cleanup: true
on:
branch: release