-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathMakefile
35 lines (27 loc) · 1.39 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
virtualenv:
rm -rf venv
virtualenv venv
sh -c "source venv/bin/activate && pip install -r requirements.txt"
echo "Now do: source venv/bin/activate"
test:
@echo "Remember to start MongoDB first!"
sh -c "source venv/bin/activate && pip install -r requirements-tests.txt"
sh -c "source venv/bin/activate && py.test tests/ -v"
doc:
sh -c "PYTHONPATH=. sphinx-autobuild docs/ docs/_build/html -z mongokat"
test_cext:
@echo "Remember to start MongoDB first!"
python setup.py build_ext && cp build/lib.macosx-10.10-intel-2.7/mongokat/_cbson.so mongokat/ && py.test tests -sv
pypi:
python setup.py sdist upload -r pypi
docker_build:
docker build -t pricingassistant/mongokat .
docker_shell:
docker run -v `pwd`:/app:rw -w /app -t -i pricingassistant/mongokat bash
start_mongod:
mongod --smallfiles --noprealloc --nojournal &
docker_test: docker_build
docker run -v `pwd`:/app:rw -w /app -t -i pricingassistant/mongokat sh -c 'make start_mongod && python -m py.test tests/ -v'
docker run -v `pwd`:/app:rw -w /app -t -i pricingassistant/mongokat sh -c 'make start_mongod && python3 -m py.test tests/ -v'
docker run -v `pwd`:/app:rw -w /app -t -i pricingassistant/mongokat sh -c 'make start_mongod && MONGOKAT_DISABLE_CBSON=1 python -m py.test tests/ -v'
docker run -v `pwd`:/app:rw -w /app -t -i pricingassistant/mongokat sh -c 'make start_mongod && MONGOKAT_DISABLE_CBSON=1 python3 -m py.test tests/ -v'