-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (40 loc) · 937 Bytes
/
.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
sudo: required
language: android
android:
components:
- tools
- build-tools-26.0.2
- android-27
- extra-android-m2repository
- extra-android-support
- extra-google-m2repository
licenses:
- 'android-sdk-license.*'
cache:
directories:
- node_modules
- platforms
- plugins
before_install:
# Add node.js dependencies.
- curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
- sudo apt-get install nodejs
- curl -o- -L https://yarnpkg.com/install.sh | bash
- source ~/.bashrc
- node -v && npm -v && yarn -v
script:
- sudo npm install -g cordova
- cordova -v
- yarn
- yarn build
- yarn release:android
- mv ./platforms/android/app/build/outputs/apk/release/app-release.apk generate-key_$TRAVIS_TAG.apk
deploy:
provider: releases
skip-cleanup: true
overwrite: true
api_key: $GH_TOKEN
file:
- "generate-key_$TRAVIS_TAG.apk"
on:
tags: true