forked from intersystems/ipm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (18 loc) · 769 Bytes
/
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
VERSION?=$(shell sed -n 's|^ *<Version>\(.*\)</Version> *|\1|p' module.xml)
NAME?=zpm
FULLNAME=$(NAME)-$(VERSION)
IMAGE?=$(NAME):$(VERSION)
BASE?=store/intersystems/iris-community:2020.4.0.547.0
build: clean
docker build -t $(IMAGE) .
release: build
echo release $(FULLNAME)
echo image $(IMAGE)
docker run --rm -it -v `pwd`/scripts:/opt/scripts -v `pwd`/out:/opt/out -w /opt/out --entrypoint /opt/scripts/make-release.sh $(IMAGE) $(FULLNAME).xml $(VERSION)
make check
clean:
rm -rf out
check:
docker run --rm -it -v `pwd`/scripts:/opt/scripts -v `pwd`/out:/opt/out -w /opt/out --entrypoint /opt/scripts/check-release.sh $(BASE) $(FULLNAME).xml
test: build
docker run --rm -it -v `pwd`/scripts:/opt/scripts --entrypoint /opt/scripts/run-tests.sh $(IMAGE)