forked from release-engineering/greenwave
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (39 loc) · 1015 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
44
45
46
47
# Use podman-compose by default if available.
ifeq (, $(shell which podman-compose))
COMPOSE := docker-compose
else
COMPOSE := podman-compose
endif
TOX := tox
all: help
help:
@echo 'Usage:'
@echo
@echo ' make up - starts containers in docker-compose environment'
@echo
@echo ' make down - stops containers in docker-compose environment'
@echo
@echo ' make build - builds container image for docker-compose environment'
@echo
@echo ' make recreate - recreates containers for docker-compose environment'
@echo
@echo ' make test - run unit and functional tests'
@echo
@echo 'Variables:'
@echo
@echo ' COMPOSE=docker-compose|podman-compose'
@echo ' - docker-compose or podman-compose command'
@echo ' (default is "podman-compose" if available)'
@echo
@echo ' ARGS=""'
@echo ' - additional arguments for pytest'
up:
$(COMPOSE) up -d
down:
$(COMPOSE) down
build:
$(COMPOSE) build
recreate:
$(COMPOSE) up -d --force-recreate
test:
$(TOX) -e functional -- $(ARGS)