-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
84 lines (77 loc) · 2.96 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
env:
global:
- ANDROID_API_LEVEL=28
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
- TERM=dumb # Keep gradle from crapping all over the log
- JAVA_HOME=/usr/lib/jvm/java-8-oracle
matrix:
include:
- os: linux
sudo: false
language: android
android:
components:
- tools
- platform-tools
- tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- android-$ANDROID_API_LEVEL
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
addons:
apt:
sources:
- sourceline: deb https://dl.yarnpkg.com/debian/ stable main
key_url: https://dl.yarnpkg.com/debian/pubkey.gpg
packages:
- oracle-java8-installer
- oracle-java8-set-default
- yarn
- jq
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- google-gdk-license-.+
# - os: osx
# language: objective-c
# osx_image: xcode10.2
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -f $HOME/.gradle/caches/transforms-1/transforms-1.lock
- rm -rf $HOME/.gradle/caches/3.5/fileHashes/
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/Library/Caches/Yarn/v1/
- $HOME/.cache/yarn/v1/
before_install:
- export LANG=en_US.UTF-8
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; brew install yarn ios-sim
jq ios-deploy cocoapods ; rvm use system ; pod setup ; fi
- nvm install 11
- yarn global add cordova
- mkdir www
- cp -R src/. www
- cp -R config/. www
- yes | sdkmanager "platforms;android-27"
- yes | sdkmanager "platforms;android-28"
#before_script:
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./travis/addkeys.sh ; fi
script:
- yarn install
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./travis/build-ios.sh && ./travis/package-ios.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./travis/build-android.sh && ./travis/package-android.sh ; fi
deploy:
provider: releases
api_key:
secure: "Qnk+CfRQKh/OHKTZoLxaB3VyAzg7U4z6eI7GvJCbZizq35cojWdJ4A9mEsgxT3gS/bhQ95PDx9h2tiYI/uXiwcEVFCS9Z6Y0F97Bi7zUqZJ5ztVhdI1iAY2wRDfrijT9FxkqiLUSIJ+dmhHZasPE/1xDUuZ77GIe8G//fIrLvnVzhheEnSXilUPt7CehB72dsvoIFLsAK7cfUo87bWFtmv9SmCbyhvBcxfSrArsMhQCU7I2UV0XDy5dyE6beiuJ7RAz43Ut4Yo9Qza+Cu2iHDmI/F1Iaqbl2sV21PY9zhEcWyO06QdLEniuTWLnr2fKNWX8PHpnpX6BirXec1t7XurSFxgobA+GpIyX7nAN6vQUPPBi8aBYcYoa/x1qJLA6+aWSwdtb8633yNS68HTQU8EqY+E9UDaez3SxBbYWngv4QWPHGbj91c6Ki1/VuvVwHn6AYkvKw5AmsHTc6dm0ek7RpZG5gg6/cUhftTMxF0w3omjelYNVskfNIi1AFC2F/62Xn+t/Ckm/bDye1eAG94UGpro56pr6osUgp3jKCj3TOQVABn8OG4eN3hdTL2YyQQQTy4p0xtbelM5jyCnRWaP2IFn0VCyipAZP1FHrtWm9hicfGPWwZpGBx15tdwIH4l84l0JRLp8yg4n3s1i0fSrIFIjP+0VSgEe3cfXHNDG0="
file_glob: true
file: output/*
skip_cleanup: true
overwrite: true
on:
branch: master
tags: true