-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
65 lines (65 loc) · 2.5 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
matrix:
include:
- os: linux
sudo: required
dist: trusty
language: android
android:
components:
- tools
- platform-tools
- tools
- build-tools-26.0.0
- android-26
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
addons:
apt:
sources:
packages:
- oracle-java8-installer
- oracle-java8-set-default
- jq
licenses:
- android-sdk-preview-license-.+
- android-sdk-license-.+
- android-sdk-license
- Android SDK Platform 26
- google-gdk-license-.+
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/"
- node_modules
env:
global:
- JAVA_HOME=/usr/lib/jvm/java-8-oracle
before_install:
- openssl aes-256-cbc -K $encrypted_62f3167d5387_key -iv $encrypted_62f3167d5387_iv -in my-release-key.jks.enc -out my-release-key.jks -d
- export LANG=en_US.UTF-8
- nvm install 8
- npm install -g ionic cordova@6.5.0
- find ./src -type f -exec sed -i -e "s#\/api#$sed#g" {} \;
before_script:
script:
- npm install
- chmod a+x ./travis/build-ios.sh ./travis/package-ios.sh ./travis/build-android.sh ./travis/package-android.sh
- mkdir ./www
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./travis/build-android.sh && ./travis/package-android.sh $storepass; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./travis/build-android.sh crosswalk && ./travis/package-android.sh $storepass crosswalk; fi
deploy:
provider: releases
api_key:
secure: d1lJEufTCeQoCpG2RJ4wExmKwV5m6iZaClEwGnamkCRR62m8rHrrOsZO91E2S7zQs5RgOMJ8ebEw+S8t75Ppy6vZ/R72TSJBi+qEpoNV1sA3Val89QWI+XNu1u0cywDs6PkZ0UdfoaSBbwHrNKPOKMrpkWkn0IBN6iI/7UsU3R3MP2Y9UgxuyPb5KyguHslXAZ5bqdKTjGwHr6dxX6mDxALfDEpE8j/CqN5nkzu32CEP33jWojrfUqPBdrOUYL6YkXoFfqwB3CnRqev13qZEFaurnah/bJm6ybvw88wYW7oxifrJn3GTNezKjme9L4aH9LqQsUbAMkecvZoT1ZVO+9O4/nFb6P5wOSUXgPBoiGoIzBYqWEC65LAYXrgL/XLOdNPK7JiyhjZ3KNDul5qqKWF+8PUzkV23hmdMsbpsZEyQebSTlR35XKfuk1O8yG2Ml2HdYbyQS2IVKMLW53VFqng55Ano/WlS44LLergjmopWGmEcY2A/QBQcvnaymGKrGTsQuN9WNjmyV2eikUjmNl82aAVSc6mg7II6ZZOeAiQNnlD0ld1Xgwg82FotUNDRUYuZ/NuLpDwMZiwguoLyhUEZ+6yQS4YYVaAXgRpvGTgR72FDyGhwVFEcBsGPxA5T1Hrui8zv1IFtdpUgCFzXiE7xGUDKyFslg4/jme3Fq5U=
file_glob: true
file: output/*
skip_cleanup: true
overwrite: true
on:
tags: true