-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
40 lines (38 loc) · 1.65 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
language: java
notifications:
email: false
if: tag IS blank
before_install: chmod +x gradlew
script: "./gradlew clean build"
jdk:
- oraclejdk8
before_cache:
- find $HOME/.gradle/ -name '*.lock' -print -exec rm -f {} \;
cache:
directories:
- "$HOME/.gradle/caches/"
- "$HOME/.gradle/wrapper/"
sudo: false
dist: trusty
after_success:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL
before_deploy:
- export RELEASE_FILE_LIST=$(ls ./build/libs/* | tr '\n' ', ')
- echo "deploying $RELEASE_FILE_LIST to GitHub releases"
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: MBF4aODfOzuwRWAbppp0q+r8DpZoZk59j2N3knUOBoNQwLUFwz0BGm2f+IOV36J2fO+XQRsyTMvRJt/mDkx1LpApttWfnYl2ZgPqPJ02+oiHOEYe1zyOX83ls4W1wsD7IjL126h+Kv++Hs6KasQEe/c0Ihwjo3dhjDnPKWU0+IM5McjSZ7X65DU7ZvkwklBxHpwH8QMRJSqjgunZzza1qyUHNjgQCDbHcheJnnZ0pQ7L/8T8fevNPdVesIrGR4r0wXhaD/Q8jYUZX3shuSKbIJXzqqGRQTmjfeQrirFcaB9YasNcp2NrsBlhVA9AhhM3le+gRRCYP4pwfA2lX/k/h7RaXbA+demdZnbKZZzctDREsg026mMe4fKhe9vM24/sPxr72dcXvSJqLTPw9X5zaXQubu3WKH5WXOPDxKoFsOCSi98zBOS26iEPrnOI+aAy+uO7nYqNytiCS5kVZwZtLu8CsGauGxKstoejVOUoZumzqT72yaGnSr4mQbyLDbUcmQ1XwQUP+20E5nzA9/Hcs5qwIKy30PMptL9p6SQvS1DFPtAiEoVn5GbQ8k6uC1+SVmPpuNmcymgMaaYmBESzYlg1bdx+nY3VMSSL5MJipk789pXPdrPww3Tzhnk/UtTdLhT7ZKiPaFcJUFacnUPmki0m3ZqYfnmRjWDyjEp1lcM=
file_glob: true
file: "{$RELEASE_FILE_LIST}"
on:
repo: Andromander/Gaia-Dimension
branch: 1.17.x
tags: false