Skip to content

Instantly share code, notes, and snippets.

@fcschmidt fcschmidt/Makefile
Last active Aug 21, 2019

What would you like to do?
# Makefile for start testing
# Used for capture container id: docker ps -aqf "name=example-api"
container_name = exampple-api # docker ps for view container name
container_id := $(shell docker ps -aqf "name=$(container_name)")
folder_name = example-api
manage_path = $(folder_name)/django/app/
app_test = app-example.tests.tests_models
docker exec -it $(container_id) su -c "TRAVIS=1 python /$(manage_path) test $(app_test) --settings=settings.test"
docker exec -it $(container_id) su -c "TRAVIS=1 python /$(manage_path) makemigrations --settings=settings.local"
docker exec -it $(container_id) su -c "python /$(manage_path) shell --settings=setting$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.