-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (31 loc) · 823 Bytes
/
Makefile
File metadata and controls
38 lines (31 loc) · 823 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
34
35
36
37
38
.PHONY: build run linters
# Including all other Makefiles
include $(shell find . -name "Makefile.common")
# Builds the module Docker image
build:
docker-compose build module
# Runs an interactive shell into the module Docker image
run:
docker-compose run module
# Runs linters locally
linters:
docker run \
-e RUN_LOCAL=true \
-v $(shell pwd -P):/tmp/lint \
github/super-linter
# Integration test
#
# The module should be able to reach all the other components
integration-test: build
# Running the test
#
# Retrieves `module`'s return code, and terminates
# the test as soon as it returns
docker-compose \
--file tests/integration/docker-compose.yml \
up \
--exit-code-from module
# Manually removing containers on fail
docker-compose \
--file tests/integration/docker-compose.yml \
down