forked from automl/SMAC3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (37 loc) · 1.18 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
.PHONY: test
test:
pytest -v --cov=smac test --durations=20
.PHONY: doc
doc:
make -C doc clean
make -C doc buildapi
make -C doc html-noplot
make -C doc linkcheck
.PHONY: doc-with-examples
doc-with-examples:
make -C doc clean
make -C doc buildapi
make -C doc html
make -C doc linkcheck
.PHONY: clean
clean: clean-data
make -C doc clean
.PHONY: clean-data
clean-data:
# remove all files that could have been left by test cases or by manual runs
# feel free to add more lines
find . -maxdepth 3 -iname 'smac3-output_*-*-*_*' | tac | while read -r TESTDIR ; do rm -Rf "$${TESTDIR}" ; done
find . -maxdepth 3 -iname '*.lock' -exec rm {} \;
rm -Rf run_*
rm -Rf test/test_files/scenario_test/tmp_output_*
rm -Rf test/test_files/test_*_run1
rm -f test/test_files/test_scenario_options_to_doc.txt
rm -f test/test_files/validation/test_validation_rh.json
rm -Rf test/run_*
rm -Rf test/test_smbo/run_*
rm -Rf test/test_files/test_restore_state/
rm -Rf test/test_files/test_restored_state/
rm -Rf test/test_files/validation/test/
rm -f test/test_files/validation/validated_runhistory.json*
rm -f test/test_files/validation/validated_runhistory_EPM.json*
rm -Rf test/test_files/out_*/