-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
35 lines (28 loc) · 884 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
26
27
28
29
30
31
32
33
34
CWD := $(shell pwd)
NAME := $(shell jq -r .name META6.json)
VERSION := $(shell jq -r .version META6.json)
ARCHIVENAME := $(subst ::,-,$(NAME))
check:
git diff-index --check HEAD
prove6
tag:
git tag $(VERSION)
git push origin --tags
dist:
git archive --prefix=$(ARCHIVENAME)-$(VERSION)/ \
-o ../$(ARCHIVENAME)-$(VERSION).tar.gz $(VERSION)
test-alpine:
docker run --rm -t -u root \
-e RELEASE_TESTING=1 \
-v $(CWD):/test \
--entrypoint="/bin/sh" \
jjmerelo/raku-test \
-c "apk add --update --no-cache libcurl && cd /test && zef install --/test --deps-only --test-depends . && zef -v test ."
test-debian:
docker run --rm -t \
-e RELEASE_TESTING=1 \
-v $(CWD):/test -w /test \
--entrypoint="/bin/sh" \
jjmerelo/rakudo-nostar \
-c "zef install --/test --deps-only --test-depends . && zef -v test ."
test: test-alpine test-debian