forked from hexlet-basics/exercises-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (23 loc) · 856 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
-include /opt/basics/common/common.mk
compose-setup: compose-build
compose:
docker compose up
compose-build:
docker compose build
code-lint:
@(for i in $$(find . -type f -name main.cpp); do cpplint --filter=-legal/copyright,-build/include_subdir $$(dirname $$i)/main.cpp ; done)
compile:
@(for i in $$(find . -type f -name main.cpp); do cd $$(dirname $$i) && g++ -std=c++17 -c *.cpp ; done)
compose-bash:
docker compose run exercises bash
compose-test:
docker compose run exercises make test
compose-code-lint:
docker compose run exercises make code-lint
compose-description-lint:
docker compose run exercises make description-lint
compose-schema-validate:
docker compose run exercises make schema-validate
ci-check:
docker compose --file docker-compose.yml build
docker compose --file docker-compose.yml up --abort-on-container-exit