-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
43 lines (33 loc) · 961 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
35
36
37
38
39
40
41
42
43
.PHONY: build bash test container test-script uninstall logs
build:
docker build --pull mw$(version) --target pro-mw -t prowiki/mediawiki:$(version) -t local-mw:$(version)
bash:
docker exec -it temp-mw bash
test:
$(MAKE) uninstall || true
$(MAKE) version=$(version) container
$(MAKE) test-script || true
$(MAKE) uninstall
container:
docker run --name temp-mw -d local-mw:$(version)
docker cp setup.sh temp-mw:/var/www/html/setup.sh
docker exec temp-mw bash /var/www/html/setup.sh
test-script:
bash test.sh
uninstall:
docker rm temp-mw -f
logs:
docker logs temp-mwo
build-and-publish:
$(MAKE) version=39 build
$(MAKE) version=39 test
docker push prowiki/mediawiki:39
$(MAKE) version=35 build
$(MAKE) version=35 test
docker push prowiki/mediawiki:35
$(MAKE) version=37 build
$(MAKE) version=37 test
docker push prowiki/mediawiki:37
$(MAKE) version=37php74 build
$(MAKE) version=37php74 test
docker push prowiki/mediawiki:37php74