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

Makefile 2.13 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 6 7
build:
	jbuilder build

LANORE Vincent's avatar
LANORE Vincent committed
8
.PHONY: install
Philippe Veber's avatar
Philippe Veber committed
9 10
install:
	jbuilder 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
#   big experiments
Carine Rey's avatar
Carine Rey committed
44
# -----------------------------------------------------------------------
Carine Rey's avatar
Carine Rey committed
45 46
.PHONY: analyses
analyses:
Carine Rey's avatar
Carine Rey committed
47
	cd example && \
Carine Rey's avatar
Carine Rey committed
48 49
	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
50

LANORE Vincent's avatar
LANORE Vincent committed
51 52 53 54 55 56 57 58 59
# -----------------------------------------------------------------------
#   Cleaning and formatting
# -----------------------------------------------------------------------
.PHONY: clean
clean:
	rm -rf _build
	rm -rf example/_bistro
	rm -rf example/outdir

Philippe Veber's avatar
Philippe Veber committed
60 61
.PHONY: clean-test
clean-test:
62
	rm -rf example/_bistro
Carine Rey's avatar
Carine Rey committed
63
	rm -rf example/outdir_test
64 65
	rm -rf example/report.log
	rm -rf example/dot.dag
66

LANORE Vincent's avatar
LANORE Vincent committed
67
.PHONY: format
68 69
format:
	ocp-indent -i lib/*.ml lib/*.mli app/*.ml