forked from industrial-optimization-group/DESDEO
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (39 loc) · 1.47 KB
/
Makefile
File metadata and controls
46 lines (39 loc) · 1.47 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
# This Makefile defines several targets to run tests and other useful scripts.
#
# To execute a target, issues the command "make <target>". Requires GNU Make.
#
# test: run the typical tests of DESDEO, skipping tests marked to be skipped,
# and other tests that should be skipped for one reason or the other.
#
# test-all: run all the tests found in DESDEO, regardges of mark. This can be
# very slow.
#
# test-changes: Utilizes pytest-testmon to run only necessary tests given the
# changes in the code. This should be quick for checking that changes
# have not broke anything, and running the tests that are specific to the
# changes made.
#
# test-failures: rerun the last falures only.
#
# requirements-rtd: Exports the current requiremetns into a requirements.txt
# file and ouputs it into the docs folder. This file is needed when the DESDEO
# docs are built on readthedocs.org.
#
# requirements-pip: Like above, but creates a requirements.txt file for
# installing DESDEO utilizing pip/pipx.
#
# fullstack: run the web-API and web-GUI for local develpment.
test:
pytest -n 4 -m "not nautilus and not performance and not skip"
test-all:
pytest -n 4
test-changes:
pytest -n 4 --testmon
test-failures:
pytest -n 4 --lf
requirements-rtd:
poetry export --format requirements.txt --all-extras --without-hashes --output docs/requirements.txt
requirements-pip:
poetry export --format requirements.txt --all-extras --without-hashes --output ./requirements.txt
fullstack:
./run_fullstack.sh