Skip to content

Commit 79393b2

Browse files
author
BuildTools
committed
Merge origin/master
2 parents 1d5ec20 + 467c6bc commit 79393b2

File tree

2 files changed

+32
-7
lines changed

2 files changed

+32
-7
lines changed

.travis.yml

+31-6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@ branches:
55
except:
66
- /dev-build-.*/
77

8+
before_script:
9+
|
10+
if [ ! -z "$TRAVIS_TAG" ]; then
11+
echo -e "Incrementing version for release build...\n"
12+
sed -i "/^version:/ s/.*/version: $TRAVIS_TAG/" $TRAVIS_BUILD_DIR/src/plugin.yml
13+
14+
git config --global user.email "[email protected]"
15+
git config --global user.name "travis-ci"
16+
17+
git add -f $TRAVIS_BUILD_DIR/src/plugin.yml
18+
git commit -m "Updated version for build release"
19+
git push --quiet https://[email protected]/Codisimus/PhatLoots
20+
else
21+
echo -e "Appending build number to version for dev build...\n"
22+
sed -i "/^version:/ s/.$/+$TRAVIS_BUILD_NUMBER/" $TRAVIS_BUILD_DIR/src/plugin.yml
23+
cat $TRAVIS_BUILD_DIR/src/plugin.yml
24+
fi
25+
826
after_deploy:
927
|
1028
if [ "$TRAVIS_BRANCH" == "master" ]; then
@@ -15,7 +33,7 @@ after_deploy:
1533
cd $HOME
1634
git config --global user.email "[email protected]"
1735
git config --global user.name "travis-ci"
18-
git clone --quiet --branch=gh-pages https://${AUTH_TOKEN}@github.com/Codisimus/PhatLoots gh-pages > /dev/null
36+
git clone --quiet --branch=gh-pages https://[email protected]/Codisimus/PhatLoots gh-pages > /dev/null
1937

2038
cd gh-pages
2139
git rm -rf ./javadoc
@@ -28,11 +46,18 @@ after_deploy:
2846
fi
2947

3048
before_deploy:
31-
- git config --global user.email "[email protected]"
32-
- git config --global user.name "Travis CI"
33-
- export GIT_TAG=dev-build-$TRAVIS_BUILD_NUMBER
34-
- git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER on $(date -u "+%Y-%m-%d-%H-%M-%S")"
35-
- git push --quiet https://[email protected]/Codisimus/PhatLoots $GIT_TAG
49+
|
50+
if [ -z "$TRAVIS_TAG" ]; then
51+
echo -e "Creating tag for dev build...\n"
52+
53+
git config --global user.email "[email protected]"
54+
git config --global user.name "travis-ci"
55+
export GIT_TAG=dev-build-$TRAVIS_BUILD_NUMBER
56+
git tag $GIT_TAG -a -m "Generated tag from TravisCI build $TRAVIS_BUILD_NUMBER on $(date -u "+%Y-%m-%d-%H-%M-%S")"
57+
git push --quiet https://[email protected]/Codisimus/PhatLoots $GIT_TAG
58+
59+
echo -e "New tag $GIT_TAG \n"
60+
fi
3661

3762
deploy:
3863
- provider: releases

build.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</get>-->
1717
<get dest="${download.lib.dir}">
1818
<url url="http://dev.bukkit.org/media/files/894/359/Vault.jar"/>
19-
<url url="http://ci.citizensnpcs.co/job/CitizensAPI/lastSuccessfulBuild/artifact/target/citizensapi-2.0.17-SNAPSHOT.jar"/>
19+
<url url="http://ci.citizensnpcs.co/job/CitizensAPI/lastSuccessfulBuild/artifact/target/citizensapi-2.0.20-SNAPSHOT.jar"/>
2020
<url url="http://dev.bukkit.org/media/files/619/372/Votifier.jar"/>
2121
<url url="http://dev.bukkit.org/media/files/881/691/worldguard-6.1.jar"/>
2222
<url url="http://dev.bukkit.org/media/files/880/435/worldedit-bukkit-6.1.jar"/>

0 commit comments

Comments
 (0)