forked from facebookresearch/diplomacy_searchbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 931 Bytes
/
Makefile
File metadata and controls
35 lines (25 loc) · 931 Bytes
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
POSTMAN_DIR=$(realpath thirdparty/github/fairinternal/postman/)
.PHONY: all compile clean dipcc protos
all: compile
# Target to build all internal code and resources.
compile: | dipcc protos selfplay
dipcc:
PYDIPCC_OUT_DIR=$(realpath ./fairdiplomacy) SKIP_TESTS=1 bash ./dipcc/compile.sh
selfplay:
mkdir -p build/selfplay
cd build/selfplay \
&& cmake ../../fairdiplomacy/selfplay/cc -DPOSTMAN_DIR=$(POSTMAN_DIR) -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=../../fairdiplomacy/selfplay \
&& make -j
protos:
protoc conf/*.proto --python_out ./
python heyhi/bin/patch_protos.py conf/*pb2.py
realpath fva_starting_position.json > fva_starting_position.index
test: | test_fast test_integration
test_fast: | compile
@echo "Running fast (unit) tests"
nosetests heyhi/ fairdiplomacy/ unit_tests/
test_integration: | compile
@echo "Running slow (intergration) tests"
nosetests -x integration_tests/
clean:
make -C dipcc clean