ButtonPresents/.travis.yml

27 lines
881 B
YAML
Raw Permalink Normal View History

2017-06-25 20:22:28 +00:00
cache:
directories:
- $HOME/.m2/repository/org/
2017-06-26 15:35:46 +00:00
before_install: | # Wget BuildTools and run if cached folder not found
if [ ! -d "$HOME/.m2/repository/org/spigotmc/spigot/1.12.2-R0.1-SNAPSHOT" ]; then
2017-06-26 15:35:46 +00:00
wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
2017-10-30 12:33:23 +00:00
# grep so that download counts don't appear in log files
java -jar BuildTools.jar --rev 1.12.2 # | grep -vE "[^/ ]*/[^/ ]*\s*KB\s*$" | grep -v "^\s*$"
2017-06-26 15:35:46 +00:00
fi
language: java
jdk:
- openjdk8
sudo: required
2017-06-28 15:20:15 +00:00
deploy:
# deploy develop to the staging environment
- provider: script
2017-06-28 15:52:39 +00:00
script: chmod +x deploy.sh && sh deploy.sh staging
2017-06-28 15:20:15 +00:00
on:
branch: dev
2017-06-28 15:28:49 +00:00
skip_cleanup: true
2017-06-28 15:20:15 +00:00
# deploy master to production
- provider: script
2017-06-28 15:52:39 +00:00
script: chmod +x deploy.sh && sh deploy.sh production
2017-06-28 15:20:15 +00:00
on:
branch: master
2017-06-28 15:28:49 +00:00
skip_cleanup: true