From e358160cca1d55bf357b06090eac82eb3bd208e5 Mon Sep 17 00:00:00 2001 From: Nick Minkler Date: Tue, 24 Jun 2014 12:03:24 -0700 Subject: [PATCH] add travis.yml, scripts, and settings to get auto-building. --- .travis.yml | 8 ++++++++ .utility/do-publish.sh | 8 ++++++++ .utility/settings.xml | 9 +++++++++ plugin.yml | 2 +- pom.xml | 2 +- 5 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 .travis.yml create mode 100755 .utility/do-publish.sh create mode 100644 .utility/settings.xml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f2d6bde --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: java +jdk: [ openjdk7 ] +env: + global: + - secure: "WGObsHmjnqn5e0nbXLGetwpUHU0UgvNk02+f0m3jIS7hSdBy5m1JK2K6NXV13brY0C9i0DLy0e7JKabqmqTxI94dT0LrYBxcvfmtZ/7PujOn/D9CzVimGj6g20hBDYwAXL6KAIR7JL8qexQBwIkVZPdwaA+k+UHLM9XVoIQdFgU=" + - secure: "XfBov3Z4Rk2AvS1v7o31Qr2XrO/oqQvl+Eksx9DO3XbGcLjT9wfGxGcYgP9IJO+Aa5AQo3Xud7EV4gqNpMa2PByzDdgg/nfyqSvrRvsG2aH1zm5N5bAHxCVlPimVdNtyeub6QBPCIGaWBp1R8x3Ak7F79mA5BdJuT9j5FBogC5U=" +after_success: +- .utility/do-publish.sh diff --git a/.utility/do-publish.sh b/.utility/do-publish.sh new file mode 100755 index 0000000..d9b3801 --- /dev/null +++ b/.utility/do-publish.sh @@ -0,0 +1,8 @@ +#!/bin/bash +if [[ "$TRAVIS_REPO_SLUG" != "MilkBowl/Vault" || "$TRAVIS_PULL_REQUEST" == "true" || "$TRAVIS_BRANCH" != "master" ]] +then + echo 'Travis can only publish docs for release builds.' + return 0 +fi + +mvn clean deploy --settings .utility/settings.xml diff --git a/.utility/settings.xml b/.utility/settings.xml new file mode 100644 index 0000000..e16eb13 --- /dev/null +++ b/.utility/settings.xml @@ -0,0 +1,9 @@ + + + + pub-repo + ${env.DEPLOY_USER} + ${env.DEPLOY_PASS} + + + \ No newline at end of file diff --git a/plugin.yml b/plugin.yml index 3807b86..8dc4adc 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,5 +1,5 @@ name: ${project.name} -version: ${project.version}-b${BUILD_NUMBER} +version: ${project.version}-b${env.TRAVIS_BUILD_NUMBER} description: ${project.description} authors: [cereal, Sleaker, mung3r] website: ${project.url} diff --git a/pom.xml b/pom.xml index 4089c25..91d7d76 100644 --- a/pom.xml +++ b/pom.xml @@ -312,7 +312,7 @@ Vault currently supports the following: Permissions 3, PEX, GroupManager, bPerms com.platymuus.bukkit.permissions.PermissionsPlugin PermissionsBukkit - 1.6 + 2.3 true system ${project.basedir}/lib/PermissionsBukkit.jar