mirror of
https://github.com/MilkBowl/Vault.git
synced 2024-12-26 02:48:20 +01:00
add travis.yml, scripts, and settings to get auto-building.
This commit is contained in:
parent
8c20b044df
commit
e358160cca
8
.travis.yml
Normal file
8
.travis.yml
Normal file
@ -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
|
8
.utility/do-publish.sh
Executable file
8
.utility/do-publish.sh
Executable file
@ -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
|
9
.utility/settings.xml
Normal file
9
.utility/settings.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven/apache.org/xsd/settings-1.0.0.xsd">
|
||||
<servers>
|
||||
<server>
|
||||
<id>pub-repo</id>
|
||||
<username>${env.DEPLOY_USER}</username>
|
||||
<password>${env.DEPLOY_PASS}</password>
|
||||
</server>
|
||||
</servers>
|
||||
</settings>
|
@ -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}
|
||||
|
2
pom.xml
2
pom.xml
@ -312,7 +312,7 @@ Vault currently supports the following: Permissions 3, PEX, GroupManager, bPerms
|
||||
<dependency>
|
||||
<groupId>com.platymuus.bukkit.permissions.PermissionsPlugin</groupId>
|
||||
<artifactId>PermissionsBukkit</artifactId>
|
||||
<version>1.6</version>
|
||||
<version>2.3</version>
|
||||
<optional>true</optional>
|
||||
<scope>system</scope>
|
||||
<systemPath>${project.basedir}/lib/PermissionsBukkit.jar</systemPath>
|
||||
|
Loading…
Reference in New Issue
Block a user