Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

Makefile 2.47 KB
Newer Older
LANORE Vincent's avatar
LANORE Vincent committed
1 2 3 4
# -----------------------------------------------------------------------
#   Build and install things
# -----------------------------------------------------------------------
.PHONY: build
Philippe Veber's avatar
Philippe Veber committed
5
build:
Carine Rey's avatar
Carine Rey committed
6
	dune build
Philippe Veber's avatar
Philippe Veber committed
7

LANORE Vincent's avatar
LANORE Vincent committed
8
.PHONY: install
Philippe Veber's avatar
Philippe Veber committed
9
install:
Carine Rey's avatar
Carine Rey committed
10
	dune install
11

LANORE Vincent's avatar
LANORE Vincent committed
12
.PHONY: build_docker
13
build_docker:
14
	@for dir in ./etc/docker/*; \
15 16 17
	do\
		cd $${dir}; \
		bash ./build_docker.sh; \
Carine Rey's avatar
Carine Rey committed
18
		cd - ; \
19 20
	done

LANORE Vincent's avatar
LANORE Vincent committed
21
.PHONY: push_docker
22
push_docker:
23
	@for dir in ./etc/docker/*; \
24 25 26
	do\
		cd $${dir}; \
		bash ./build_docker.sh push_yes; \
Carine Rey's avatar
Carine Rey committed
27
		cd - ; \
28
	done
Carine Rey's avatar
Carine Rey committed
29

LANORE Vincent's avatar
LANORE Vincent committed
30
# -----------------------------------------------------------------------
Carine Rey's avatar
Carine Rey committed
31
#   Test
LANORE Vincent's avatar
LANORE Vincent committed
32
# -----------------------------------------------------------------------
Carine Rey's avatar
Carine Rey committed
33

Carine Rey's avatar
Carine Rey committed
34 35
.PHONY: test
test:
Carine Rey's avatar
Carine Rey committed
36
	cd example && \
Carine Rey's avatar
Carine Rey committed
37 38
	reviewphiltrans validation --outdir outdir_test --tree-dir trees_test --profile-fn aa_fitness/263SelectedProfiles.tsv --ns 5  --np 4 --seed 4256073781403810077 && \
	reviewphiltrans validation --outdir outdir_test --tree-dir trees_test --profile-fn aa_fitness/263SelectedProfiles.tsv --diffsel --ns 5  --np 4 --seed 4256073781403810077 && \
Carine Rey's avatar
Carine Rey committed
39 40 41
	mv dag.dot dagtest_val.dot && \
	dot -Tsvg dagtest_val.dot -o dagtest_val.svg

Carine Rey's avatar
Carine Rey committed
42 43 44 45 46 47 48 49 50 51
# -----------------------------------------------------------------------
#   Test
# -----------------------------------------------------------------------

.PHONY: realdata_test
realdata_test:
	cd example && \
	reviewphiltrans realdata --outdir outdir_realdata_test --indir real_data  --np 4 --seed 4256073781403810077


Carine Rey's avatar
Carine Rey committed
52
# -----------------------------------------------------------------------
53
#   big experiments
Carine Rey's avatar
Carine Rey committed
54
# -----------------------------------------------------------------------
Carine Rey's avatar
Carine Rey committed
55 56
.PHONY: analyses
analyses:
Carine Rey's avatar
Carine Rey committed
57
	cd example && \
Carine Rey's avatar
Carine Rey committed
58 59
	reviewphiltrans validation --outdir outdir_analyses --tree-dir trees_analyses --profile-fn aa_fitness/263SelectedProfiles.tsv --np 24 --ns 2000 --seed 2167988076475850536 ; \
	reviewphiltrans validation --outdir outdir_analyses --tree-dir trees_analyses --profile-fn aa_fitness/263SelectedProfiles.tsv --np 24 --ns 2000 --seed 2167988076475850536 --diffsel
Carine Rey's avatar
Carine Rey committed
60

LANORE Vincent's avatar
LANORE Vincent committed
61 62 63 64 65 66 67 68 69
# -----------------------------------------------------------------------
#   Cleaning and formatting
# -----------------------------------------------------------------------
.PHONY: clean
clean:
	rm -rf _build
	rm -rf example/_bistro
	rm -rf example/outdir

Philippe Veber's avatar
Philippe Veber committed
70 71
.PHONY: clean-test
clean-test:
72
	rm -rf example/_bistro
Carine Rey's avatar
Carine Rey committed
73
	rm -rf example/outdir_test
Carine Rey's avatar
Carine Rey committed
74
	rm -rf example/outdir_realdata_test
75 76
	rm -rf example/report.log
	rm -rf example/dot.dag
77

LANORE Vincent's avatar
LANORE Vincent committed
78
.PHONY: format
79 80
format:
	ocp-indent -i lib/*.ml lib/*.mli app/*.ml