Skip to content

Commit eb38a23

Browse files
committed
Added localServer make target to test the plugin
1 parent cbd8b3d commit eb38a23

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Makefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
VERSION = 1.1.0
2+
GITBUCKET_VERSION = 4.26.0
3+
14
.PHONY: help # List of targets with descriptions
25
help:
36
@grep '^\.PHONY: .* #' Makefile | sed 's/\.PHONY: \(.*\) # \(.*\)/\1\t\2/' | expand -t20
@@ -12,3 +15,14 @@ build:
1215

1316
.PHONY: travis # Build on travis
1417
travis: build
18+
19+
target/gitbucket-${GITBUCKET_VERSION}.war:
20+
mkdir -p target
21+
wget https://github.com/gitbucket/gitbucket/releases/download/${GITBUCKET_VERSION}/gitbucket.war -O target/gitbucket-${GITBUCKET_VERSION}.war
22+
23+
.PHONY: localServer # Start a local gitbucket server with the plugin installed
24+
localServer: build target/gitbucket-${GITBUCKET_VERSION}.war
25+
mkdir -p target/DATA/plugins
26+
rm -rf target/DATA/plugins/*
27+
cp target/scala-2.12/gitbucket-asciidoctor-plugin-gitbucket_${GITBUCKET_VERSION}-${VERSION}.jar target/DATA/plugins
28+
java -jar target/gitbucket-${GITBUCKET_VERSION}.war --gitbucket.home=target/DATA

0 commit comments

Comments
 (0)