Makefile improvements
Change-Id: I30205538f4823cfbae5b1d4dc14e0b1fb15ad28a
This commit is contained in:
parent
867f743174
commit
fc08863bd6
18
Makefile
18
Makefile
@ -1,10 +1,11 @@
|
||||
test: clean start-mongo
|
||||
test: start-mongo
|
||||
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
|
||||
sudo docker stop surveil_test_mongo
|
||||
stop-mongo
|
||||
|
||||
clean:
|
||||
rm -rf pbr-*.egg
|
||||
@ -12,9 +13,12 @@ clean:
|
||||
rm -rf .tox
|
||||
rm -rf .testrepository
|
||||
rm -rf doc/build
|
||||
- sudo docker kill surveil_test_mongo
|
||||
- sudo docker rm surveil_test_mongo
|
||||
|
||||
start-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
|
||||
|
Loading…
Reference in New Issue
Block a user