forked from phac-nml/irida-uploader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
75 lines (62 loc) · 2.08 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
70
71
72
73
74
75
SHELL=/bin/bash
IRIDA_VERSION?=main
requirements: clean env
source .virtualenv/bin/activate
pip3 install -e .
clean:
rm -rf iridauploader/.cache
rm -rf .virtualenv
rm -rf build
rm -rf dist
rm -rf iridauploader.egg-info/
find -name "*pyc" -delete
rm -rf iridauploader/tests_integration/repos/
rm -rf iridauploader/tests_integration/tmp
env:
python3 -m venv .virtualenv
source .virtualenv/bin/activate
pip3 install --upgrade wheel pip
gui: clean env
source .virtualenv/bin/activate
pip3 install -e .[GUI]
windows: clean env
source .virtualenv/bin/activate
pip3 install -e .[WINDOWS]
python3 -m nsist windows-installer.cfg
wheel: clean
python3 setup.py sdist bdist_wheel
unittests: clean env
source .virtualenv/bin/activate
pip3 install -e .[TEST]
export IRIDA_UPLOADER_TEST='True'
coverage run -m unittest discover -s tests -t iridauploader
preintegration:
mkdir iridauploader/tests_integration/tmp
mkdir iridauploader/tests_integration/tmp/output-files
mkdir iridauploader/tests_integration/tmp/reference-files
mkdir iridauploader/tests_integration/tmp/sequence-files
mkdir iridauploader/tests_integration/tmp/assembly-files
chmod -R 555 iridauploader/tests_integration/fake_ngs_data_read_only
integrationtests: clean env preintegration
source .virtualenv/bin/activate
pip3 install -e .[TEST]
export IRIDA_UPLOADER_TEST='True'
coverage run iridauploader/tests_integration/start_integration_tests.py $(branch) $(db_host) $(db_port)
coverage: clean env
source .virtualenv/bin/activate
pip3 install -e .[TEST]
coverage erase
export IRIDA_UPLOADER_TEST='True'
coverage run -m unittest discover -s tests -t iridauploader
coverage run -a iridauploader/tests_integration/start_integration_tests.py main $(db_host) $(db_port)
coverage html
coverage report
pep8: clean env
source .virtualenv/bin/activate
pip3 install pycodestyle
pycodestyle --show-source --exclude=".git","bin",".idea","docs",".github","site",".virtualenv","iridauploader/build" --ignore="E501,W503" .
docs: requirements
source .virtualenv/bin/activate
pip3 install -r docs/requirements.txt
mkdocs build
.ONESHELL: