-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
186 lines (175 loc) · 5.21 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
env:
global:
- ANDROID_PACKAGE="app-debug.apk"
- ANDROID_PACKAGE_FOLDER=$TRAVIS_BUILD_DIR/demo/outputs
- ANDROID_SAUCE_STORAGE="https://saucelabs.com/rest/v1/storage/$SAUCE_USER/$ANDROID_PACKAGE?overwrite=true"
- IOS_PACKAGE="multiselect.zip"
- IOS_PACKAGE_FOLDER=$TRAVIS_BUILD_DIR/demo/outputs
- IOS_SAUCE_STORAGE="https://saucelabs.com/rest/v1/storage/$SAUCE_USER/$IOS_PACKAGE?overwrite=true"
git:
depth: 1
branches:
only:
- master
matrix:
include:
- stage: "Lint"
language: node_js
os: linux
node_js: "8"
script: cd src && npm run ci.tslint && cd ../demo && npm run ci.tslint && cd ../demo-ng && npm run ci.tslint
- stage: "WebPack, Build"
os: osx
env:
- WebPack="12.0"
- Type="VanillaJS"
osx_image: xcode10.0
language: node_js
node_js: "8"
jdk: oraclejdk8
script:
- cd demo && npm run build.plugin && npm i && tns build ios --bundle --env.uglify --copy-to "./outputs/demo.app"
- ls -l
# - cd $IOS_PACKAGE_FOLDER && zip -r $IOS_PACKAGE demo.app
# - "curl -v -u $SAUCE_USER:$SAUCE_KEY -X POST $IOS_SAUCE_STORAGE -H 'Content-Type: application/octet-stream' --data-binary @$IOS_PACKAGE"
- os: osx
env:
- WebPack="12.0"
- Type="Angular"
osx_image: xcode10.0
language: node_js
node_js: "8"
jdk: oraclejdk8
script:
- cd src && npm run build
- cd ../publish && sh pack.sh
- cp package/*.tgz ../demo-ng/package.tgz
- cd ../demo-ng
- sed -i -e 's/\"..\/src\"/"package.tgz"/g' package.json
- npm i
- tns build ios --bundle --env.uglify --env.aot
- language: android
os: linux
env:
- WebPack="Android 28"
- Type="VanillaJS"
jdk: oraclejdk8
before_install: nvm install 8
script:
- cd demo && npm run build.plugin && npm i && tns build android --bundle --env.uglify --env.snapshot --copy-to "./outputs/app-debug.apk"
- ls -l
# - "curl -v -u $SAUCE_USER:$SAUCE_KEY -X POST $ANDROID_SAUCE_STORAGE -H 'Content-Type: application/octet-stream' --data-binary @$ANDROID_PACKAGE_FOLDER/$ANDROID_PACKAGE"
- language: android
os: linux
env:
- WebPack="Android 28"
- Type="Angular"
jdk: oraclejdk8
before_install: nvm install 8
script:
- cd src && npm run build
- cd ../publish && sh pack.sh
- cp package/*.tgz ../demo-ng/package.tgz
- cd ../demo-ng
- sed -i -e 's/\"..\/src\"/"package.tgz"/g' package.json
- npm i
- tns build android --bundle --env.uglify --env.aot
- language: android
env:
- BuildAndroid="28"
- Type="VanillaJS"
os: linux
jdk: oraclejdk8
before_install: nvm install stable
script:
- cd demo && npm run ci.android.build
- language: android
env:
- BuildAndroid="28"
- Type="Angular"
os: linux
jdk: oraclejdk8
before_install: nvm install stable
script:
- cd demo-ng && npm run ci.android.build
- os: osx
env:
- BuildiOS="12"
- Xcode="10.0"
- Type="VanillaJS"
osx_image: xcode10.0
language: node_js
node_js: "8"
jdk: oraclejdk8
script:
- cd demo && npm run ci.ios.build
- os: osx
env:
- BuildiOS="12"
- Xcode="10.0"
- Type="Angular"
osx_image: xcode10.0
language: node_js
node_js: "8"
jdk: oraclejdk8
script:
- cd demo-ng && npm run ci.ios.build
# - os: linux
# language: android
# dist: precise
# sudo: required
# 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 run test.android
# - os: osx
# language: node_js
# node_js: "8"
# jdk: oraclejdk8
# osx_image: xcode10.0
# script: cd src && npm run test.ios
# - stage: "UI Tests"
# env:
# - Android="28"
# language: node_js
# os: linux
# node_js: "10"
# script:
# - npm i -g appium
# - cd demo && npm i
# - npm run e2e -- --runType sauce.android --sauceLab --appPath app-debug.apk
# - os: linux
# env:
# - iOS="12"
# language: node_js
# node_js: "8"
# script:
# - npm i -g appium
# - cd demo && npm i
# - npm run e2e -- --runType sauce.sim.iPhone7 --sauceLab --appPath multiselect.zip
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- android-28
- android-23
- extra-android-m2repository
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- .nvm
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_install:
- sudo pip install --upgrade pip
- sudo pip install six
install:
- echo no | npm install -g nativescript
- tns usage-reporting disable
- tns error-reporting disable