forked from Staffjoy/mobius-assignment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
37 lines (28 loc) · 773 Bytes
/
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
.PHONY: test
unit-test:
rm -rf tests/__pycache__/
py.test tests -v -s
functional-test:
rm -rf functional-tests/__pycache__/
py.test functional-tests -v -s
test:
make fmt-test
make unit-test
make functional-test
dependencies:
pip install --upgrade -I -r requirements.txt
pip freeze | grep -v "gurobipy" > requirements.txt
fmt:
yapf -r -i mobius/ functional-tests/ tests/ || :
fmt-test:
yapf -r -d mobius/ functional-tests/ tests/ || (echo "Document not formatted - run 'make fmt'" && exit 1)
dev-test:
make fmt
make test
dependency-update:
echo "Updating all packages in requirements.txt"
pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U
server:
bash server.sh
tune:
python -c "from mobius.tuner import tune; tune()"