-
Notifications
You must be signed in to change notification settings - Fork 2
/
makefile
44 lines (34 loc) · 1.45 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
CCF_C=modules/CLib/CCF
init:
pip3 install -e .
$(MAKE) C -C ${CCF_C}
update:
pip3 install -r requirements.txt --upgrade
clear:
rm -f -r *.log
rm -f -r cores
clean: clear
rm -f -r build/
rm -f -r dist/
rm -f -r *.egg-info
rm -f -r .pytest_cache
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
notebook:
pip3 install jupyter
jupyter notebook --port ${KPFPIPE_PORT} --allow-root --ip=0.0.0.0 ""
docker:
docker build --cache-from kpf-drp:latest --tag kpf-drp:latest .
$(if $(KPFPIPE_DATA),,$(error Must set KPFPIPE_DATA))
$(if $(KPFPIPE_PORT),,docker run -it -v ${PWD}:/code/KPF-Pipeline -v ${KPFPIPE_TEST_DATA}:/testdata -v ${KPFPIPE_DATA}:/data -v ${KPFPIPE_DATA}/masters:/masters --network=host -e DBPORT=6125 -e DBNAME=kpfopsdb -e DBUSER=${KPFPIPE_DB_USER} -e DBPASS="${KPFPIPE_DB_PASS}" -e DBSERVER=127.0.0.1 kpf-drp:latest bash)
docker run -it -p ${KPFPIPE_PORT}:${KPFPIPE_PORT} --network=host \
-e KPFPIPE_PORT=${KPFPIPE_PORT} -e DBPORT=6125 -e DBNAME=kpfopsdb -e DBUSER=${KPFPIPE_DB_USER} -e DBPASS="${KPFPIPE_DB_PASS}" -e DBSERVER=127.0.0.1 \
-v ${PWD}:/code/KPF-Pipeline -v ${KPFPIPE_TEST_DATA}:/testdata -v ${KPFPIPE_DATA}:/data -v ${KPFPIPE_DATA}/masters:/masters kpf-drp:latest bash
regression_tests:
pytest -x --cov=kpfpipe --cov=modules --pyargs tests.regression
coveralls
performance_tests:
pytest -x --pyargs tests.performance
validation_tests:
pytest -x --pyargs tests.validation
.PHONY: init