aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Makefile
blob: d713dd29e86209c2a8fc2d0eda2f9c8b1ae348c3 (plain) (blame)
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
include prelude.mk

.PHONY: DO
DO:

.PHONY: all
all: test

.PHONY: test
test: test/local

.PHONY: test/all
test/all: test/local test/docker

.PHONY: test/local
test/local:
	./test/local/test.sh

# This is deliberately excluded from test/all, because it quite destructive.
.PHONY: test/linux-home
test/linux-home:
	./test/linux-home/test.sh

test/docker/%: DO
	cd test/docker && \
		DISTRO='$*' docker-compose build --force-rm --progress plain --pull -q && \
		docker-compose run --rm test && \
		docker-compose down -v

# Xenial has bash 4.3, which doesn't support inherit_errexit, which is a good
# thing to test against.
#
# Keep the list repositories synced with the GitHub actions workflow.
.PHONY: test/docker
test/docker: test/docker/xenial test/docker/focal