-
Notifications
You must be signed in to change notification settings - Fork 54
/
Makefile
55 lines (40 loc) · 1.44 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
54
55
VERSION = $(shell head pom.xml | grep '<version>[0-9.]\+' | sed 's/<version>\([0-9.]\+\)<\/version>/\1/g' | tr -d '[:space:]')
DIST_TARGET=datashare-dist/target/datashare-dist-$(VERSION)-docker
PATH_TO_APP_DIST=../datashare-client/dist/
$(DIST_TARGET): dist
clean:
mvn clean
.PHONY: dist
dist:
mvn validate package -Dmaven.test.skip=true
build: install validate update-db package
install:
mvn install
validate:
mvn validate
package:
mvn -Dmaven.test.skip=true package
generate-db:
mvn clean generate-sources
update-db:
mvn -pl commons-test -am install
mvn -pl datashare-db liquibase:update
help-db:
mvn help:describe -DgroupId=org.liquibase -DartifactId=liquibase-maven-plugin -Dversion=2.0.1 -Dfull=true
release-%:
mvn -pl datashare-$* versions:set -DnewVersion=${NEW_VERSION}
sed -i "s|<datashare\-$*.version>\([0-9.]\+\)<\/datashare\-$*.version>|<datashare\-$*.version>${NEW_VERSION}<\/datashare\-$*.version>|g" pom.xml
git commit -am "[release] datashare-$*/${NEW_VERSION}"
git tag datashare-$*/${NEW_VERSION}
echo "If everything is OK, you can push with tags i.e. git push origin main --tags"
release:
mvn versions:set -DnewVersion=${NEW_VERSION}
git commit -am "[release] ${NEW_VERSION}"
git tag ${NEW_VERSION}
echo "If everything is OK, you can push with tags i.e. git push origin main --tags"
docker: $(DIST_TARGET)
docker build -t icij/datashare:$(VERSION) $(DIST_TARGET)
unit:
mvn test
run:
./launchBack.sh