.travis.yml
language: java
jdk: oraclejdk8
dist: trusty # Use Ubuntu 14.04 as its faster
env:
global:
- DISCORD_URL=https://raw.githubusercontent.com/itachi1706/travis-ci-discord-webhook/master/send.sh
before_install:
- chmod +x gradlew
script: "./gradlew build"
after_success:
- ls ./build/libs
- wget $DISCORD_URL
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
after_failure:
- wget $DISCORD_URL
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL
deploy:
provider: releases
api_key: "$OAUTH_KEY"
file_glob: true
file: "./build/libs/CheesecakeCapes*.jar"
skip_cleanup: true
on:
tags: true
notifications:
slack:
secure: P+9ulVr8Z73SJG37Ox1pBtVHQSz+2aeUL/ON71ECMj3LCrLmsQrFv+kPKNEz5xCkxt0IfajZGvKYB5xdzkyJqVB7ajfUFfMHWO8GzVtPEq/Iy8F66HDzy3Lc4S5C/9Ibm7wD829p3lfdSXRPJY9u3ox+8qStLVkZLjB0y9SWPPQ=