-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis_with_publish.yml
67 lines (58 loc) · 1.29 KB
/
.travis_with_publish.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
language: android
jdk:
- oraclejdk8
sudo: required
# safelist
branches:
only:
- master
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- node_modules
android:
components:
- tools
- build-tools-28.0.2
- android-26
- platform-tools
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
before_install:
- curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
- sudo apt-get install nodejs
- sudo apt-get install ant
- npm i
- npm run predeploy:android
- cd android/
- chmod +x gradlew
- gem install fastlane -NV
- echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
script:
- npm run flow
- yes | /usr/local/android-sdk/tools/bin/sdkmanager "build-tools;28.0.3"
deploy:
provider: script
script:
- bash dev/ci/pre-build.sh
- npm run deploy:android
on:
branch: master
notifications:
webhooks:
urls:
- "https://www.travisbuddy.com/"
on_success: never
on_failure: always
on_start: never
on_cancel: never
on_error: never