-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (30 loc) · 1.26 KB
/
Copy pathMakefile
File metadata and controls
46 lines (30 loc) · 1.26 KB
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
PYTHON := $(shell command -v python3 || command -v python)
preview:
@pnpm --dir preview install --silent
@cd preview && pnpm dev
build-private: drop-release
@$(PYTHON) test_solutions.py private
drop-release:
@rm -rf release
check-names:
@$(PYTHON) check_task_names.py
check-limits:
@$(PYTHON) check_task_limits.py
build: check-names check-limits drop-release
@$(PYTHON) test_solutions.py tasks
build-and-preview: build preview
release: build
tar -czf release.tar.gz release/
push-local:
@$(PYTHON) push_tasks.py http://localhost:4000/ext_api/tasks --hidden
push-private:
@$(PYTHON) push_tasks.py https://codebattle.hexlet.io/ext_api/tasks --hidden
push-public:
@$(PYTHON) push_tasks.py https://codebattle.hexlet.io/ext_api/tasks --public --batch-size 100
push-packs-local:
@$(PYTHON) push_task_packs.py http://localhost:4000/ext_api/task_packs --hidden
push-packs-private:
@$(PYTHON) push_task_packs.py https://codebattle.hexlet.io/ext_api/task_packs --hidden --dir private/task_packs
push-packs-public:
@$(PYTHON) push_task_packs.py https://codebattle.hexlet.io/ext_api/task_packs --public
.PHONY: release preview build build-and-preview check-names check-limits push push-private push-public push-local push-packs-local push-packs-private push-packs-public