forked from qwertycoin-org/qwertycoin-mobile-wallet
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
79 lines (72 loc) · 2.7 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
env:
global:
- ANDROID_API_LEVEL=30
- ANDROID_BUILD_TOOLS_VERSION=30.0.2
- 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:
packages:
- oracle-java8-installer
- oracle-java8-set-default
- 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/
before_install:
- export LANG=en_US.UTF-8
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; brew install ios-sim
jq ios-deploy cocoapods ; rvm use system ; pod setup ; fi
- nvm install 12
- npm i -g cordova
- mkdir www
- cp -R src/. www
- cp -R config/. www
- yes | sdkmanager "platforms;android-27"
- yes | sdkmanager "platforms;android-28"
- yes | sdkmanager "platforms;android-29"
- yes | sdkmanager "platforms;android-30"
#before_script:
# - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./travis/addkeys.sh ; fi
script:
- npm i
- cordova --version
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./travis/build-android.sh && ./travis/package-android.sh ; fi
deploy:
provider: releases
api_key:
secure: "r2ooDfxDXfTh/QnMZQX7JfZmNVXspQaipUuqMHFaQtgU+FGrOtqX06JVpKgLsaD7Gxkfkoe4e8DpYk0ykaH5zyopkgkblSB9XLzh8w0T6WNo5GOdz8uVQZd2EC2qrs+MIddLsuxV88KHGOHDW4FBmlUs/+F/Xvoi+sGI0kNWcTWDk+5DLuAd/sEtxCb6NgMEJWFVlnV4wqhVo6JTUO74trxQaauWj/c69q7hErWxM4qv11nDZEvxFAXbiiVBMWQo+WOlKqp5sz+l1SEGz8w91ccZGQ287y6ZQTZSKBJnN7TzaBEe0pAUxqrHUpavz3vPUB+NtZpbdhrtT3xrpYEOLM0PMabhDltE/TcvbhuEGRJGoaRXWyHG+/NuEu9wPZcpjHSBPRzE7yUmtKUWhmfWXQKzGnVhJdOQTkxWWDuE6NK2Gwoc9K86tU5bJGkW8VPpaKkpDWo+eoLpgSmMK+8VyzFxETh8FdESf0kvJSa6ctk7ml4aVguB0C09w0XTPqFKbpONqBEgbfVrboy9H0UBokQkFkGgB8nlBRN+wFhYDOOO4j4d3Q4hOet/t+AoL0VCkIa4bDl8Q6X9j6TNWbpYj7KhjwkmSQhULAx2NwxcZXAXpnmfsU9UPZuVeKk6bR4hbrhPiKaKFeAe1DcrZpuvN/ufANEMDBDHF/iqpjd2Ez4="
file_glob: true
file: output/*
skip_cleanup: true
overwrite: true
on:
tags: true