-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
44 lines (34 loc) · 1.12 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
timestamp := $(shell /bin/date "+%F %T")
usage:
@echo "=============================================================="
@echo "usage => 显示菜单"
@echo "compile => 编译"
@echo "test => 单元测试"
@echo "clean => 清理"
@echo "package => 打包"
@echo "deploy => 发布"
@echo "install => 本地安装"
@echo "version => 调整版本号"
@echo "github => 提交源代码"
@echo "=============================================================="
compile:
@mvn -f $(CURDIR)/pom.xml clean compile
test:
@mvn -f $(CURDIR)/pom.xml clean test
package:
@mvn -f $(CURDIR)/pom.xml clean package -Dmaven.test.skip=true
deploy:
@mvn -f $(CURDIR)/pom.xml clean deploy -Dmaven.test.skip=true -P"sonar"
install:
@mvn -f $(CURDIR)/pom.xml clean install -Dmaven.test.skip=true
version:
@mvn -f $(CURDIR)/pom.xml versions:set
@mvn -f $(CURDIR)/pom.xml -N versions:update-child-modules
@mvn -f $(CURDIR)/pom.xml versions:commit
clean:
@mvn -f $(CURDIR)/pom.xml clean -q
github: clean
@git add .
@git commit -m "$(timestamp)"
@git push
.PHONY: usage compile test clean package install deploy version github