Revision 768bd220facec9eb4f66a6b349b0bc96e7538cf7 authored by Bruno Thomas on 14 June 2022, 09:39:34 UTC, committed by Bruno Thomas on 14 June 2022, 09:39:34 UTC
1 parent ae1f492
Makefile
VERSION = $(shell cat 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
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 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 master --tags"
docker: $(DIST_TARGET)
docker build -t icij/datashare:$(VERSION) $(DIST_TARGET)
unit:
mvn test
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...