-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
30 lines (30 loc) · 1.08 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
language: java
after_success:
- wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget https://raw.githubusercontent.com/k3rn31p4nic/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL
before_install:
- echo $TRAVIS_BUILD_NUMBER > $TRAVIS_BUILD_DIR/src/main/resources/build.txt
before_deploy:
- git config --local user.name "HyperiumDeploy"
- git config --local user.email "[email protected]"
- git tag -a $TRAVIS_BUILD_NUMBER -m "Automated beta build"
- "git push https://[email protected]/HyperiumClient/Hyperium.git HEAD:master --follow-tags"
after_deploy:
- wget https://gist.github.com/Cubxity/457736a7bcbfe6d6f3ae2a5db04c0806/raw/deploy-hook.sh
- chmod +x deploy-hook.sh
- ./deploy-hook.sh $CUBE_MAN
deploy:
provider: releases
api_key: $GIT_TOKEN
skip_cleanup: true
file_glob: true
file: $TRAVIS_BUILD_DIR/build/libs/*
on:
repo: HyperiumClient/Hyperium
prerelease: true
if: tag IS blank