-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (23 loc) · 1.17 KB
/
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
# Python Configuration
PYPROJECT_TOML := pyproject.toml
.DEFAULT_GOAL := init
.PHONY += init paths checks test clean
init: # Do the initial configuration of the project
@test -e .env || cp example.env .env
.env: init
paths: .env # Create the necessary data directories
@mkdir -p $(shell grep -E '^WEI_DATA_DIR=' .env | cut -d '=' -f 2)
@mkdir -p $(shell grep -E '^REDIS_DIR=' .env | cut -d '=' -f 2)
checks: # Runs all the pre-commit checks
@pre-commit install
@pre-commit run --all-files || { echo "Checking fixes\n" ; pre-commit run --all-files; }
test: init .env paths # Runs all the tests
@docker compose -f wei.compose.yaml --env-file .env up --build -d
@docker compose -f wei.compose.yaml --env-file .env exec sciclops pytest -p no:cacheprovider -m "not hardware" hudson_platecrane_module
@docker compose -f wei.compose.yaml --env-file .env down
hardware_test: init .env paths # Runs all the tests
@docker compose -f wei.compose.yaml --env-file .env up --build -d
@docker compose -f wei.compose.yaml --env-file .env exec sciclops pytest -p no:cacheprovider -m "hardware" hudson_platecrane_module
@docker compose -f wei.compose.yaml --env-file .env down
clean:
@rm .env