This repository has been archived by the owner on Sep 26, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
48 lines (40 loc) · 1.75 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
language: java
jdk:
- oraclejdk8
# Cache dependencies
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_install:
- chmod +x gradlew
# Extract the latest commits
before_script:
# - export COMMIT_MESSAGE=$(git show -s --format=%B $TRAVIS_COMMIT | tr -d '\n')
- "export COMMIT_MESSAGE=\"$(git log --format=%B --no-merges -n 1)\""
script:
- ./gradlew clean
- ./gradlew assemble -Pversion="1.0.$TRAVIS_BUILD_NUMBER"
# Auto push release
before_deploy:
- git config --global user.email "builds@travis-ci.com"
- git config --global user.name "Travis CI"
- export GIT_TAG="v1.0.$TRAVIS_BUILD_NUMBER-SNAPSHOT"
- git tag $GIT_TAG -a -m "$COMMIT_MESSAGE"
- git push -q https://$GITHUBKEY@github.com/TryHardDood/iZone $GIT_TAG
- ls -R
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: WXeq2loRAPNwigCO0cSXP4ioq4Rkh9u8lnDZtQffmERgsqtN/WCMyiF0sYOTJydiWmLvImPmkx4yWKyh/boibp3O/CkHG8wMipuQMh/Rvf1dsHquj05gJt7EloCYxyRbhVsLdemDhhEl4OMObdEc5kxhxIPqWnVQR/mULZ7zH0fo1y2mt9f0iJuVljJY1UqPgti6IjZHmqkRJxykmdV9DMVEsjO15XnPIE+BPLox0FoUU34Uir2/w2sQlSPC9RHmkiXPEn/aigbbsih1BJE1bhOChmmLkRCAtAskJxyM8WLRS6bQS1twDg9wFQ5znFZLeMorGGIaK3mwDodCu2YKedB1aWdHufsHTAAq88wIoJlEMnx4vsfcF+NsYB4QbjcjqiIdYTQ1h+FAnS30OG9HK3k+2Nt3wBqTmxsdNj5d2tVoYIWw87HPudd2O3nuhbWrTSgIZFTjZPQI4ktffvg7JClLYJMSueApNQFjZJ+101cJoWeWKWuXR9JpwS/QTkduedRZpShnApjNDuiqyhHOxJ5qGp00JAvNhmSLOtbsRZ3DCddI7X3iucKRqYVMMbh9g+ILVOUdD/IQ18CbRqPkGeeiNkFAXR7NNxaWZo7sPX3YXz9D05yc64t2Xh9XvddrTK9wBZzS12Psom6qkEBxGAk1uy9ZWHTbVF7kKnkIpb8=
file: "$TRAVIS_BUILD_DIR/target/iZone.jar"
on:
branch: master
tags: false
branches:
only:
- master