Skip to content

Commit fa2b0be

Browse files
author
codebysd
committed
updated build file
1 parent 0d9b49c commit fa2b0be

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.travis.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,22 @@
22
language: java
33
script: ./gradlew clean assemble
44

5+
# Cache gradle downloads
6+
before_cache:
7+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
8+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
9+
cache:
10+
directories:
11+
- $HOME/.gradle/caches/
12+
- $HOME/.gradle/wrapper/
13+
514
# Deploy exec zip on release tags
615
deploy:
716
provider: releases
817
api_key: "GH_TOKEN"
918
file: "./build/distributions/PlayStoreUploader.zip"
1019
skip_cleanup: true
1120
on:
12-
# only deploy tags from master, when tag is like: v1.0.0-alpha
21+
# only deploy tags from master
1322
branch: master
1423
tags: true
15-
condition: "$TRAVIS_TAG =~ ^(v\\d\\.\\d\\.\\d)(-\\w+)?$"

0 commit comments

Comments
 (0)