forked from rlf/uSkyBlock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
33 lines (33 loc) · 1.03 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
language: java
sudo: false
branches:
only:
# Only build (and deploy) pushes tagged with a version number
- /^v2.*$/
env:
global:
secure: dGzZ9hl0ezUCYs72+Z4LUgtny0qsUn3HibpBKo4hriRPMY8EQqaJfi1ZDQTKr3ctjJMtQtcgnlC0BujEV+1W2tObjSJsCAdEbzKYZijwRXSK5jT1sua3EQScKYelpv0z4fd9LIYJJ95xwXMNMmAFSjdu3fRDkxtGgIIKbka8YiE=
notifications:
email: false
before_install:
# Change the maven-version to be the tag (for the API deploy)
# Skip the 'v'
- mvn versions:set -Dtravis.buildNumber=${TRAVIS_BUILD_NUMBER} -DnewVersion=${TRAVIS_TAG:1}
script:
- mvn -nsu -Dtravis.buildNumber=${TRAVIS_BUILD_NUMBER} -DskipTests=true -Pi18n,1.8 install
deploy:
provider: releases
api-key: ${GITHUB_TOKEN}
file:
- uSkyBlock-Plugin/target/uSkyBlock.jar
- uSkyBlock-Plugin/target/uSkyBlock-Plugin/gettext-report.txt
skip_cleanup: true
on:
tags: true
all_branches: true
after_success:
# Deploy API to the GitHub maven repo
- mvn -nsu deploy -DGITHUB_TOKEN=${GITHUB_TOKEN}
cache:
directories:
- $HOME/.m2