Skeleton contracts / contracts (pull_request) Blocked by required conditions
Реализован контракт lab1 (X-User-Id), non-root образ, SIGTERM ≤10s, DEFENSE/REPORT.
30 lines
692 B
Makefile
30 lines
692 B
Makefile
PYTHON ?= python3
|
|
BASE_URL ?= http://localhost:8080
|
|
CA_FILE ?=
|
|
ACTION_SCRIPT ?=
|
|
TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",)
|
|
GO ?= go
|
|
|
|
.PHONY: help check validate test load student-test build run
|
|
|
|
help:
|
|
@echo "check: offline structure; validate: full OpenAPI; test: public smoke; student-test: own Go checks; build: compile server"
|
|
|
|
check:
|
|
$(PYTHON) scripts/check_contract.py
|
|
|
|
validate:
|
|
$(PYTHON) scripts/validate_openapi.py
|
|
|
|
test:
|
|
$(PYTHON) tests/smoke.py --base-url "$(BASE_URL)" $(TLS_ARGS)
|
|
|
|
load:
|
|
$(PYTHON) tests/load.py --base-url "$(BASE_URL)" $(TLS_ARGS)
|
|
|
|
student-test:
|
|
$(GO) test ./student-tests/ -v -count=1 -timeout 120s
|
|
|
|
build:
|
|
$(GO) build -o bin/server ./cmd/server
|