-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (28 loc) · 995 Bytes
/
Makefile
File metadata and controls
33 lines (28 loc) · 995 Bytes
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
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 \
-e RELEASE_TESTING=1 \
-v $(CWD):/test \
--entrypoint="/bin/sh" \
jjmerelo/raku-test \
-c "echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && apk add --update --no-cache primesieve && 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 "apt update && apt install -y libprimesieve && zef install --/test --deps-only --test-depends . && zef -v test ."
test: test-alpine test-debian