-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
31 lines (24 loc) · 791 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
install:
mvn clean install
site:
mvn site
# fix refs to JXR line numbers
find target/site -name '*.html' -print0 | xargs -0 sed -i 's:\(\.html#\)L\([[:digit:]]\):\1\2:g'
git fetch origin +gh-pages:gh-pages
rm -rf target/site-repo
git clone . target/site-repo -b gh-pages --single-branch
cp -a target/site/. target/site-repo/
cd target/site-repo && git add -A && git commit -m 'updated site' && git push
site-deploy:
git push origin gh-pages
gitsite:
mvn clean install site site-deploy
codeship-setup:
# maven repository will be cached between builds - it has no snapshots anyway
rm -rf .m2/repository
mkdir -p .m2 cache/repository
ln -sf ../cache/repository .m2/repository || true
#
mvn dependency:go-offline
codeship-test:
mvn --batch-mode --show-version -e verify