forked from harvester/tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (37 loc) · 1.36 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!make
all: manual backend frontend static-copy
pytest-install:
pip install -r test-requirements.txt
manual:
cd docs; hugo;
backend:
pytest-install; cd harvester_e2e_tests/; pdoc --html -o . .;
frontend:
cd cypress; npm install; ./node_modules/.bin/typedoc --options ./typedoc.json;
static-copy:
mv cypress/docs/ docs/public/integration;
mv harvester_e2e_tests/harvester_e2e_tests docs/public/backend;
live-copy:
mkdir -p /tmp/hugo/
mv cypress/docs/ /tmp/hugo/integration;
mv harvester_e2e_tests/harvester_e2e_tests /tmp/hugo/backend;
preview-hugo:
cd docs; hugo server --buildDrafts --buildFuture --destination /tmp/hugo --bind 0.0.0.0
run-docs: clean backend frontend live-copy preview-hugo
clean-docs:
rm -rf docs/public;
rm -rf cypress/docs;
rm -rf harvester_e2e_tests/harvester_e2e_tests;
rm -rf /tmp/hugo;
run-all-tests:
tox -e testenv -- harvester_e2e_tests --html=test_result.html
run-api-tests:
tox -e testenv -- harvester_e2e_tests/apis --html=test_result.html
run-scenario-tests:
tox -r -e testenv -- harvester_e2e_tests/scenarios --html=test_result.html
run-integration-tests:
tox -r -e testenv -- harvester_e2e_tests/integration --html=test_result.html
build-docker-backend-tests-image:
docker build -f Dockerfile . -t harvester-tests-backend:latest;
destroy-docker-backend-tests-image:
docker image rm harvester-tests-backend:latest --force