Makefile improvements

Change-Id: I30205538f4823cfbae5b1d4dc14e0b1fb15ad28a
This commit is contained in:
aviau 2015-08-14 11:44:45 -04:00
parent 867f743174
commit fc08863bd6

View File

@ -1,10 +1,11 @@
test: clean start-mongo test: start-mongo
tox tox
sudo docker stop surveil_test_mongo
integration: clean start-mongo clean-test: clean stop-mongo start-mongo test
integration: clean stop-mongo start-mongo
tox -eintegration tox -eintegration
sudo docker stop surveil_test_mongo stop-mongo
clean: clean:
rm -rf pbr-*.egg rm -rf pbr-*.egg
@ -12,9 +13,12 @@ clean:
rm -rf .tox rm -rf .tox
rm -rf .testrepository rm -rf .testrepository
rm -rf doc/build rm -rf doc/build
- sudo docker kill surveil_test_mongo
- sudo docker rm surveil_test_mongo
start-mongo: start-mongo:
sudo docker pull mongo sudo docker pull mongo
sudo docker run -d --name surveil_test_mongo -p 27017:27017 mongo mongod --smallfiles --noprealloc - sudo docker run -d --name surveil_test_mongo -p 27017:27017 mongo mongod --smallfiles --noprealloc
make stop-mongo:
- sudo docker stop surveil_test_mongo
- sudo docker kill surveil_test_mongo
- sudo docker rm surveil_test_mongo