-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
27 lines (27 loc) · 1.37 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
language: java
jdk:
- oraclejdk8
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_deploy:
- export GRADLE_BUILD_DIR="build/libs"
- export TAG=$(git describe --abbrev=0 --tags)
- export MOD_TAG=${TAG#"v"}
- export RELEASE_PKG_FILE="${GRADLE_BUILD_DIR}/WATER_BUDGET-${MOD_TAG}.jar"
- echo "deploying $RELEASE_PKG_FILE to GitHub releases"
- gradle -PprojVersion=$MOD_TAG build
deploy:
provider: releases
api_key:
secure: lqF3smJdwR96ssGZTaT2TxLkaJ90UzZVdf53Tu8O11h7iVpr6LJKmTtIAh+/uTxo17ijmF5KaJPuJ6kHKUKc5P0YlUade9eaPVEsLYiSZIe9fEapCLxk3QhLjSO4Tl3goCOTxsCjsl9fRHAIkD4wtBdy6yP219OiUcUauwAso6EYBbYvR0p46xUD0Vt+B+ZQxOxuqQ8IQSLv9j6age0n1yXZBsWlygIC4ZEGjPJhMDzEoZ2s3aNltVfBjvbGCP3hk4poDJneC8SaWLgW41yD3EwRChg879upKx8prBMP/qszfBCI+HfB4C7fqLxYTfA84/MiRsJQ/AsZXSP/84BsIJmfT/yLBy8ok3GsJqS+ar0JqGa3FhCIM03G4WHmHC6dRMPVKcav5xPji7dv2vTZKCR6/PM8ZgKIauNkTSMg8uwHVqJMZeyPRJ1wjG2EkMklBoBaIXICbSWMlCfGryM4L8lIz+buPjykIh/wbJIqfaQjlMBZJjQFqQ+P81UZz6VpOqK3PmFrg0IzFcfQszJsjXp5aEzzcET4LkaDXZe4Nl9dPAT7HpCFTFSQK/ogSwrMAfGuJNMaP1oiDRsI/jKKX1rp57OSRG36mBFYc1DMmreSUdUhu9YlMdgk7CzjRVMRPnn04HJ1Yc4ictIGNpuiB3zkCCOixWekKXYmCvcOh+I=
file: "${RELEASE_PKG_FILE}"
skip_cleanup: true
on:
tags: true
all_branches: true
repo: geoframecomponents/WATER_BUDGET