-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
71 lines (61 loc) · 2.33 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
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 "apk add --update --no-cache libgcrypt && zef install --/test --deps-only --test-depends . && zef -v test ."
alpine-env:
docker run --rm -it \
-e RELEASE_TESTING=1 \
-e PERL6LIB=/test \
-v $(CWD):/test \
--entrypoint="/bin/sh" \
jjmerelo/raku-test \
-c "apk add --update --no-cache libgcrypt && zef install --/test --deps-only --test-depends . && /bin/sh"
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 ."
debian-env:
docker run --rm -it \
-e RELEASE_TESTING=1 \
-e PERL6LIB=/test \
-v $(CWD):/test -w /test \
--entrypoint="/bin/sh" \
jjmerelo/rakudo-nostar \
-c "zef install --/test --deps-only --test-depends . && /bin/bash"
# Yeah, I know I should put all this in a docker image
centos-env:
docker run --rm -it \
-e RELEASE_TESTING=1 \
-e PERL6LIB=/test \
-v $(CWD):/test -w /test \
--entrypoint="/bin/bash" \
centos:latest \
-c "yum install -y wget curl git && wget https://dl.bintray.com/nxadm/rakudo-pkg-rpms/CentOS/8/x86_64/rakudo-pkg-CentOS8-2020.02.1-04.x86_64.rpm && yum install -y rakudo-pkg-CentOS8-2020.02.1-04.x86_64.rpm && source ~/.bashrc && zef install --/test --deps-only --test-depends . && /bin/bash"
test-centos:
docker run --rm -t \
-e RELEASE_TESTING=1 \
-e PERL6LIB=/test \
-v $(CWD):/test -w /test \
--entrypoint="/bin/bash" \
centos:latest \
-c "yum install -y wget curl git && wget https://dl.bintray.com/nxadm/rakudo-pkg-rpms/CentOS/8/x86_64/rakudo-pkg-CentOS8-2020.02.1-04.x86_64.rpm && yum install -y rakudo-pkg-CentOS8-2020.02.1-04.x86_64.rpm && source ~/.bashrc && zef install --/test --deps-only --test-depends . && zef -v test ."
test: test-alpine test-debian test-centos