-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (48 loc) · 1.59 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
CONTAINER_IMAGE=$(shell bash scripts/container_image.sh)
PYTHON ?= "python3"
PYTEST_OPTS ?= ""
PYTEST_DIR ?= "tests"
ABACO_DEPLOY_OPTS ?= "-p"
SCRIPT_DIR ?= "scripts"
PREF_SHELL ?= "bash"
ACTOR_ID ?=
GITREF=$(shell git rev-parse --short HEAD)
TEST_JOB_UUID ?= "10766b61-49f0-524d-a17f-f4bd42bdfce7"
TEST_JOB_TOKEN ?= "c2f338f3e79e4f86"
TEST_JOB_STATUS ?= "RUNNING"
DOCKER_NETWORK ?= --network docker_mongotest
.PHONY: tests container tests-local tests-reactor tests-deployed datacatalog formats
.SILENT: tests container tests-local tests-reactor tests-deployed datacatalog formats
all: image
datacatalog: formats
if [ -d ../python-datacatalog ]; then rm -rf python-datacatalog; cp -R ../python-datacatalog .; fi
image:
abaco deploy -R -t $(GITREF) $(ABACO_DEPLOY_OPTS)
shell:
bash $(SCRIPT_DIR)/run_container_process.sh bash
init: init-job
init-job:
python3 tests/install_job.py --filename tests/data/init-job.json
tests: tests-pytest tests-local
tests-integration:
true
tests-pytest:
bash $(SCRIPT_DIR)/run_container_process.sh $(PYTHON) -m "pytest" $(PYTEST_DIR) $(PYTEST_OPTS)
tests-local: tests-local-json-index
tests-local-json-index:
bash $(SCRIPT_DIR)/run_container_message.sh tests/data/index01.json
tests-deployed:
echo "not implemented"
clean: clean-image clean-tests
clean-image:
docker rmi -f $(CONTAINER_IMAGE)
clean-tests:
rm -rf .hypothesis .pytest_cache __pycache__ */__pycache__ tmp.* *junit.xml
deploy:
abaco deploy -t $(GITREF) $(ABACO_DEPLOY_OPTS) -U $(ACTOR_ID)
postdeploy:
bash tests/run_after_deploy.sh
nonce:
bash scripts/nonces-new.sh
nonces:
bash scripts/nonces-list.sh