-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
240 lines (220 loc) · 9.14 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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
branches:
only:
#- deploy
- /^v.*$/
language: node_js
node_js:
- "10.15.3"
sudo: false
matrix:
include:
-
language: csharp
dist: trusty
sudo: required
mono: none
dotnet: 2.1
before_script:
- chmod -R a+x scripts
script:
- "./scripts/dotnet-build.bat"
- "./scripts/dotnet-test.bat"
- "./scripts/dotnet-publish.bat"
- "./scripts/docker-publish-travis.bat"
- "./scripts/docker-publish-heroku.bat"
- "./scripts/docker-publish-heroku-release.bat"
after_success:
- "./scripts/after-success.bat"
-
language: node_js
dist: trusty
node_js:
- "10.9.0"
addons:
chrome: stable
before_install:
- chmod -R a+x scripts
- "./scripts/ionic-prebuild.bat"
before_script:
- npm install -g @angular/cli
- npm install -g firebase-tools
#- export CHROME_BIN=/usr/bin/google-chrome
#- export DISPLAY=:99.0
#- sh -e /etc/init.d/xvfb start
#- sudo apt-get update
#- sudo apt-get install -y libappindicator1 fonts-liberation
#- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
#- sudo dpkg -i google-chrome*.deb
script:
- "./scripts/ionic-build.bat"
- "./scripts/ionic-build-functions.bat"
after_success:
- "./scripts/ionic-publish-firebase.bat"
deploy:
provider: releases
api_key:
secure: ZoPSo+x0ULpRlp9fm5C45beODFHNq4pkib1SCqyUDm/ffBjb6oTwlu//ScgBIjL7sGixaVdUb4ev2ywCcK3UIZ9mDfF84NQ2nYKVQ2i7c7N8DrrEKbQjUlgf1tPEKHpe6fesJdwPKM0EvCR7VcfpxNcF2reTCsRxq0CAU3V0+2DBGsSGo8MxP+61Gbd5hjU8LnM5D0ktGE+1V0QN8yK+bE0lRUOEpPEpYp0LLPQton4jie5VKNz7pslxP/CyoPaMLmc+mo3uZlCKEbQBao2rl+QvQS765BH11U+oS6uLU8//1gA2hyOCDWH2xCpcQZYUDtzFn8ywyoR75Elpsf87IMH1z4A6RxJIVFC3pdTwjlwpJPta42TCrE10RD0aJh/NyEToRPPba0x2/W0ujA0BiOiVzSGWhYfP6Q0A96e+pFfvrvD+UaWSrS3v2VbcGDONH8TyHPyFtIqyHih41mv8ZJTQSeK0x6DbyYDtIwkJiQn/kkkb0eCZQyBuWWMtWWlLbjcoNwtjGQpHkv7X3Tlh0+jKsPhAGCSB97uDF1wQV/KgQW2KO727KEa7pUvhd8v1F711eTjlVAkLazVMIjC93+Daqbx8bSrlynNiMvuszDVtSlpl8xHTPsA5YFFl0ij3PihdGDbKEGNP2u1qzRlthsT4YzBdhIWvOFk0nHf+uFo=
file:
- "./ionic-ui/ionic-ui.tar.gz"
#- "./ionic/output/volunteer-ui.tar.gz"
skip_cleanup: true
on:
repo: youstinus/volunteer
branch: deploy
tags: true
-
language: android
os: linux
jdk: oraclejdk8
sudo: required
node_js: false
android:
components:
- tools
- platform-tools
- tools
- build-tools-26.0.2
- android-27
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- android-googletv-license-.+
- google-gdk-license-.+
- intel-android-extra-license-.+
- mips-android-sysimage-license-.+
before_install:
- chmod -R a+x scripts
- export LANG=en_US.UTF-8
- nvm install v10.9.0
- node --version
- travis_retry curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
- travis_retry sudo apt-get update -qq
- travis_retry sudo apt-get install -y -qq yarn
#- openssl aes-256-cbc -K $encrypted_b9169b51202b_key -iv $encrypted_b9169b51202b_iv
# -in ./ionic-ui/key.keystore.enc -out ./ionic-ui/key.keystore -d
install:
- yarn
before_script:
- "./scripts/ionic-android-prebuild.bat"
#- export ANDROID_HOME=$PWD/ionic-ui/android-sdk-linux
#- export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/24.0.2
#- export CHROME_BIN=/usr/bin/google-chrome
#- export DISPLAY=:99.0
#- sh -e /etc/init.d/xvfb start
#- sudo apt-get update
#- sudo apt-get install -y libappindicator1 fonts-liberation
#- wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
#- sudo dpkg -i google-chrome*.deb
script:
- "./scripts/ionic-android-build.bat"
after_success:
- "./scripts/ionic-android-publish.bat"
#env:
# global:
# - JAVA_HOME=/usr/lib/jvm/java-8-oracle
# - ANDROID_API=24
# - EMULATOR_API=21
# - ANDROID_BUILD_TOOLS=24.0.2
# - ADB_INSTALL_TIMEOUT=5 # minutes
deploy:
provider: releases
api_key:
secure: ZoPSo+x0ULpRlp9fm5C45beODFHNq4pkib1SCqyUDm/ffBjb6oTwlu//ScgBIjL7sGixaVdUb4ev2ywCcK3UIZ9mDfF84NQ2nYKVQ2i7c7N8DrrEKbQjUlgf1tPEKHpe6fesJdwPKM0EvCR7VcfpxNcF2reTCsRxq0CAU3V0+2DBGsSGo8MxP+61Gbd5hjU8LnM5D0ktGE+1V0QN8yK+bE0lRUOEpPEpYp0LLPQton4jie5VKNz7pslxP/CyoPaMLmc+mo3uZlCKEbQBao2rl+QvQS765BH11U+oS6uLU8//1gA2hyOCDWH2xCpcQZYUDtzFn8ywyoR75Elpsf87IMH1z4A6RxJIVFC3pdTwjlwpJPta42TCrE10RD0aJh/NyEToRPPba0x2/W0ujA0BiOiVzSGWhYfP6Q0A96e+pFfvrvD+UaWSrS3v2VbcGDONH8TyHPyFtIqyHih41mv8ZJTQSeK0x6DbyYDtIwkJiQn/kkkb0eCZQyBuWWMtWWlLbjcoNwtjGQpHkv7X3Tlh0+jKsPhAGCSB97uDF1wQV/KgQW2KO727KEa7pUvhd8v1F711eTjlVAkLazVMIjC93+Daqbx8bSrlynNiMvuszDVtSlpl8xHTPsA5YFFl0ij3PihdGDbKEGNP2u1qzRlthsT4YzBdhIWvOFk0nHf+uFo=
file:
#- "./ionic-ui/platforms/android/app/build/outputs/apk/release/app-release.apk"
#- "./ionic-ui/platforms/android/app/build/outputs/apk/release/app-release-unsigned.apk"
#- "./ionic-ui/platforms/android/app/build/outputs/apk/release/volunteer-release.apk"
- "./ionic-ui/output/volunteer-release.apk"
skip_cleanup: true
on:
repo: youstinus/volunteer
branch: deploy
tags: true
-
language: objective-c
os: osx
osx_image: xcode9.4
node_js: false
before_install:
- chmod -R a+x scripts
- nvm install v10.9.0
- node --version
- travis_retry npm install -g yarn
- yarn -version
install:
- travis_retry gem install xcpretty
- travis_retry yarn
#xcode_project: ios/PepperoniAppTemplate.xcodeproj
#xcode_scheme: ios/PepperoniAppTemplateTests
before_script:
- "./scripts/ionic-ios-prebuild.bat"
script:
- "./scripts/ionic-ios-build.bat"
after_success:
- "./scripts/ionic-ios-publish.bat"
deploy:
provider: releases
api_key:
secure: ZoPSo+x0ULpRlp9fm5C45beODFHNq4pkib1SCqyUDm/ffBjb6oTwlu//ScgBIjL7sGixaVdUb4ev2ywCcK3UIZ9mDfF84NQ2nYKVQ2i7c7N8DrrEKbQjUlgf1tPEKHpe6fesJdwPKM0EvCR7VcfpxNcF2reTCsRxq0CAU3V0+2DBGsSGo8MxP+61Gbd5hjU8LnM5D0ktGE+1V0QN8yK+bE0lRUOEpPEpYp0LLPQton4jie5VKNz7pslxP/CyoPaMLmc+mo3uZlCKEbQBao2rl+QvQS765BH11U+oS6uLU8//1gA2hyOCDWH2xCpcQZYUDtzFn8ywyoR75Elpsf87IMH1z4A6RxJIVFC3pdTwjlwpJPta42TCrE10RD0aJh/NyEToRPPba0x2/W0ujA0BiOiVzSGWhYfP6Q0A96e+pFfvrvD+UaWSrS3v2VbcGDONH8TyHPyFtIqyHih41mv8ZJTQSeK0x6DbyYDtIwkJiQn/kkkb0eCZQyBuWWMtWWlLbjcoNwtjGQpHkv7X3Tlh0+jKsPhAGCSB97uDF1wQV/KgQW2KO727KEa7pUvhd8v1F711eTjlVAkLazVMIjC93+Daqbx8bSrlynNiMvuszDVtSlpl8xHTPsA5YFFl0ij3PihdGDbKEGNP2u1qzRlthsT4YzBdhIWvOFk0nHf+uFo=
file:
#- "./ionic-ui/platforms/ios/build/emulator/Volun.app"
#- "./ionic-ui/platforms/ios/build/emulator/volun-release-unsigned.app.tgz"
- "./ionic-ui/output/volunteer-release-unsigned.app.tgz"
skip_cleanup: true
on:
repo: youstinus/volunteer
branch: deploy
tags: true
#- cd ios
#- xcodebuild -scheme PepperoniAppTemplate -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO | xcpretty
#- travis_retry xctool run-tests -scheme PepperoniAppTemplate -sdk iphonesimulator -launch-timeout 90 ONLY_ACTIVE_ARCH=NO
# -
# language: objective-c
# os: osx
# osx_image: xcode8.3
# cache: false
#
# before_install:
# - export LANG=en_US.UTF-8
# - brew update
#
# install:
# # install minimum set of dependencies to run tests and linters
# - npm install -g npm gulp bower
#
# before_script:
# # update npm and bower dependencies
# - npm install
# - bower update
#
# # run linters and tests
# # if fails then build process stops
# # - gulp test
#
# script:
# # install android SDK
# - wget http://dl.google.com/android/android-sdk_r24.4-macosx.zip
# - tar -xvf android-sdk_r24.4-macosx.zip
#
# - "./scripts/ionic-build-premobile.bat"
#
# - export ANDROID_HOME=./android-sdk-macosx
# - export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/23.0.2
#
# - "./scripts/ionic-build-mobile.bat"
notifications:
email:
on_success: always
on_failure: never
#deploy:
# provider: releases
# api_key:
# secure: ZoPSo+x0ULpRlp9fm5C45beODFHNq4pkib1SCqyUDm/ffBjb6oTwlu//ScgBIjL7sGixaVdUb4ev2ywCcK3UIZ9mDfF84NQ2nYKVQ2i7c7N8DrrEKbQjUlgf1tPEKHpe6fesJdwPKM0EvCR7VcfpxNcF2reTCsRxq0CAU3V0+2DBGsSGo8MxP+61Gbd5hjU8LnM5D0ktGE+1V0QN8yK+bE0lRUOEpPEpYp0LLPQton4jie5VKNz7pslxP/CyoPaMLmc+mo3uZlCKEbQBao2rl+QvQS765BH11U+oS6uLU8//1gA2hyOCDWH2xCpcQZYUDtzFn8ywyoR75Elpsf87IMH1z4A6RxJIVFC3pdTwjlwpJPta42TCrE10RD0aJh/NyEToRPPba0x2/W0ujA0BiOiVzSGWhYfP6Q0A96e+pFfvrvD+UaWSrS3v2VbcGDONH8TyHPyFtIqyHih41mv8ZJTQSeK0x6DbyYDtIwkJiQn/kkkb0eCZQyBuWWMtWWlLbjcoNwtjGQpHkv7X3Tlh0+jKsPhAGCSB97uDF1wQV/KgQW2KO727KEa7pUvhd8v1F711eTjlVAkLazVMIjC93+Daqbx8bSrlynNiMvuszDVtSlpl8xHTPsA5YFFl0ij3PihdGDbKEGNP2u1qzRlthsT4YzBdhIWvOFk0nHf+uFo=
# file: "./ionic-ui/platforms/android/app/build/outputs/apk/release/app-release.apk"
# on:
# repo: youstinus/volunteer
# branch: deploy