Skip to content
This repository was archived by the owner on Feb 25, 2019. It is now read-only.

Commit 64cb6d3

Browse files
committed
build apk with Travis CI
1 parent 6b18f57 commit 64cb6d3

File tree

1 file changed

+48
-3
lines changed

1 file changed

+48
-3
lines changed

Diff for: .travis.yml

+48-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,48 @@
1-
language: node_js
2-
node_js:
3-
- "node"
1+
os: linux
2+
language: android
3+
4+
android:
5+
components:
6+
- tools
7+
- platform-tools
8+
- build-tools-26.0.2
9+
- android-26
10+
- extra-google-m2repository
11+
- extra-android-m2repository
12+
licenses:
13+
- 'android-sdk-preview-license-.+'
14+
- 'android-sdk-license-.+'
15+
- 'google-gdk-license-.+'
16+
17+
env:
18+
global:
19+
- JAVA_HOME=/usr/lib/jvm/java-8-oracle
20+
21+
before_install:
22+
- export LANG=en_US.UTF-8
23+
24+
install:
25+
- nvm install 8
26+
- npm install -g [email protected]
27+
- npm install
28+
29+
script:
30+
- npm run build
31+
- cordova build android
32+
33+
before_deploy:
34+
- git config --local user.name "StellarCN Travis CI"
35+
- git config --local user.email "[email protected]"
36+
- git tag "Debug-$(date +'%Y%m%d')-$(git log --format=%h -1)"
37+
- cd platforms/android/build/outputs/apk/debug/
38+
- mv android-debug.apk "firefly-debug-$(date +'%Y%m%d')-$(git log --format=%h -1).apk"
39+
40+
deploy:
41+
provider: releases
42+
file_glob: true
43+
api_key:
44+
secure: a6kA4zpPPxnII6cEQdnzZ7aqkjUuN3Ryuj5fBu/s8gjAhxD1l0EZoFQyLAJR6/qbpEZ1tbBeaTeAIlDOd360W/kODSdL4fGSZtTaUYM6/ykBSc+yXaFyTcj9pNMbQ2Btz16jpXQSPmS1fV12mn3+l+rD3YF1cHDOX/cNnZxo0bym/yFXmxFe5F6ftLzifP9M4qt9foE6x94xqP6R7gVpqLGv24rVfw7U2tnitziiYsqkuGW3pGFOKT0ts+0Wf3EfGlpc0TMQ3d6szAbtdq2uEuG/V5dPKB5QCx3o+HkAYPitLKWUtVBNJah/CoorFcHkVShp2DSlbCGB8/FD3uHzqXZKa4d0b3LioJn2SNauPo9G2HdW3BjhYrp5G/YAFvYjch3VWxkYIy6xWoVaKcKGoYcoFAKgsOLXvucdvXfF6QJ3h2t7WYsaAR6TqJywIRl6NMNV5Ltd1HcEQR14QgAGw8hrssVzSeCGHhUNvnxU3fGYmmWO88oW/jlhZFAhfR2hXo5kxM/RN6fxu+TcXgyCbSzc2lgkhqo2vUL1G8pjlm92yhKy+dPjaUT11V75ZAFgb9ia5NZo5DUwgT0nC8k59RL6o0hN2VdDmql9n0Urq0YqtoDmRkqhIcdWAKk4ZDj8s+Kr9uokH2Fy5krGvIKB7GlbB5F7KRd5UfwiDeZkzxU=
45+
file: ./*.apk
46+
skip_cleanup: true
47+
on:
48+
all_branches: true

0 commit comments

Comments
 (0)