forked from ccnmtl/mediathread
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
222 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
MANAGE=./manage.py | ||
APP=mediathread | ||
FLAKE8=./ve/bin/flake8 | ||
|
||
jenkins: ./ve/bin/python validate test flake8 | ||
|
||
./ve/bin/python: requirements.txt bootstrap.py virtualenv.py | ||
./bootstrap.py | ||
|
||
test: ./ve/bin/python | ||
$(MANAGE) jenkins | ||
|
||
flake8: ./ve/bin/python | ||
$(FLAKE8) $(APP) --max-complexity=17 | ||
|
||
runserver: ./ve/bin/python validate | ||
$(MANAGE) runserver | ||
|
||
migrate: ./ve/bin/python validate jenkins | ||
$(MANAGE) migrate | ||
|
||
validate: ./ve/bin/python | ||
$(MANAGE) validate | ||
|
||
shell: ./ve/bin/python | ||
$(MANAGE) shell_plus | ||
|
||
clean: | ||
rm -rf ve | ||
rm -rf media/CACHE | ||
rm -rf reports | ||
rm -f celerybeat-schedule | ||
rm -rf .coverage | ||
find . -name '*.pyc' -exec rm {} \; | ||
|
||
pull: | ||
git pull | ||
make validate | ||
make test | ||
make migrate | ||
make flake8 | ||
|
||
rebase: | ||
git pull --rebase | ||
make validate | ||
make test | ||
make migrate | ||
make flake8 | ||
|
||
# run this one the very first time you check | ||
# this out on a new machine to set up dev | ||
# database, etc. You probably *DON'T* want | ||
# to run it after that, though. | ||
install: ./ve/bin/python validate jenkins | ||
createdb $(APP) | ||
$(MANAGE) syncdb --noinput | ||
make migrate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# flake8: noqa | ||
# Django settings for mediathread project. | ||
|
||
# if you add a 'deploy_specific' directory | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters