-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
53 lines (46 loc) · 1.22 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Makefile for Scala Wechaty
#
# GitHb: https://github.com/wechaty/scala-wechaty
# Author: Huan LI <[email protected]> https://github.com/huan
#
.PHONY: all
all : clean test
.PHONY: clean
clean:
mvn clean
.PHONY: lint
lint:
echo lint
.PHONY: install
install:
mvn install
.PHONY: test
test:
mvn test
.PHONY: bot
bot:
mvn \
-DWECHATY_PUPPET_HOSTIE_TOKEN=$$WECHATY_PUPPET_HOSTIE_TOKEN \
-Dmaven.test.skip=true \
-P run verify
.PHONY: padbot
padbot:
mvn \
-DWECHATY_PUPPET_PADPLUS_TOKEN=$$WECHATY_PUPPET_PADPLUS_TOKEN \
-Dmaven.test.skip=true \
-P run-pad verify
.PHONY: version
version:
@newVersion=$$(awk -F. '{print $$1"."$$2"."$$3+1}' < VERSION) \
&& echo $${newVersion} > VERSION \
&& git add VERSION \
&& mvn versions:set -DnewVersion=$${newVersion} \
&& mvn versions:commit \
&& git commit -a -m "Release $${newVersion}" > /dev/null \
&& git tag "$${newVersion}" \
&& echo "Bumped version to $${newVersion}" \
&& newVersion=$$(awk -F. '{print $$1"."$$2"."$$3+1}' < VERSION) \
&& mvn versions:set -DnewVersion=$${newVersion}-SNAPSHOT \
&& mvn versions:commit \
&& git commit -a -m "prepare next development $${newVersion}-SNAPSHOT" > /dev/null \
&& echo "next version to $${newVersion}-SNAPSHOT"