Revision ae1f492605776594dc25feaaa72d337f4cf3d7b1 authored by Bruno Thomas on 14 June 2022, 09:07:31 UTC, committed by Bruno Thomas on 14 June 2022, 09:07:31 UTC
1 parent 054e05d
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 ...