forked from pircbotx/pircbotx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
23 lines (23 loc) · 1018 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
language: java
jdk: openjdk7
#skip default travis install step
install: true
#build, test, and deploy official snapshot all in one go for faster build time and to stay under Travis's log limit
script: mvn clean install source:jar deploy --settings .travis/maven-settings.xml -Dsnapshot.version=-`git rev-parse --short HEAD`
after_success:
#Deploy javadoc to gh-pages branch
- mvn site site-deploy -Pcomplete-build -DskipTests=true --batch-mode
#Seriously git?! git checkout, git reset, git pull, all with gh-pages, origin/gh-pages, remotes/origin, gh-pages?
#Nope, obviously you do
- git fetch origin -f gh-pages:gh-pages
- git checkout gh-pages
#...
- mv target/site-deploy-generated/* snapshot/
- git add snapshot
- git config user.name "Leon Blakey"
- git config user.email "[email protected]"
- git commit -m "Autobuild of maven site by Travis CI"
- git push https://$DEPLOY_PAGES_USERNAME:[email protected]/TheLQ/pircbotx.git
notifications:
irc:
- irc.freenode.org#pircbotx