-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from wooyek/develop
Wsparcie dla Heroku, TOX i Travis
- Loading branch information
Showing
9 changed files
with
148 additions
and
13 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
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,27 @@ | ||
language: python | ||
|
||
python: | ||
- "2.7" | ||
- "3.4" | ||
- "3.5" | ||
- "3.6" | ||
|
||
sudo: false | ||
|
||
cache: | ||
- apt | ||
- pip | ||
|
||
install: | ||
- pip install -r requirements.txt -r requirements-dev.txt | ||
|
||
script: coverage run malybar/manage.py test | ||
|
||
after_success: | ||
- coveralls | ||
- bash <(curl -s https://codecov.io/bash) | ||
|
||
branches: | ||
only: | ||
- develop | ||
- master |
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 @@ | ||
web: gunicorn --chdir=/app/malybar malybar.wsgi:application --log-file - |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
# File path should be ./bin/post_compile | ||
# https://gist.github.com/kylefox/7044491259b6b2586ca1 | ||
|
||
echo "=> Performing database migrations..." | ||
python malybar/manage.py 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Potrzebne testom CI na Travis | ||
coverage | ||
coveralls | ||
|
||
# Przydaje się do testowania na różnych wersjach Pythona | ||
tox | ||
|
||
# Narzędzia ułatwiające pisanie testów jednostkowych | ||
mock | ||
faker | ||
factory-boy | ||
|
||
# Narzędzie do wersjonowania wydań | ||
bumpversion | ||
|
||
# Analiza jakości kodów źródłowych | ||
pylint | ||
|
||
# Inne | ||
invoke | ||
pathlib | ||
|
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,4 +1,12 @@ | ||
Sphinx==1.4.5 | ||
Django==1.10.4 | ||
django-registration | ||
dj-database-url | ||
Django==1.10.4 | ||
django-registration | ||
|
||
# Potrzebne do budowania dokumentacji | ||
Sphinx==1.4.5 | ||
|
||
# Wymagane przez Heroku | ||
# Potrzebne dla obsługi PostgreSQL, plików statycznych oraz serwera HTTP | ||
psycopg2 | ||
dj-database-url | ||
whitenoise | ||
gunicorn |
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,31 @@ | ||
# Tox (http://tox.testrun.org/) is a tool for running tests | ||
# in multiple virtualenvs. This configuration file will run the | ||
# test suite on all supported python versions. To use it, "pip install tox" | ||
# and then run "tox" from this directory. | ||
|
||
[tox] | ||
envlist = py27,py35 | ||
skipsdist = True | ||
|
||
[testenv] | ||
passenv = | ||
DJANGO_SETTINGS_MODULE | ||
DATABASE_URL | ||
|
||
setenv = | ||
TOX_ENVBINDIR={envbindir} | ||
LIBRARY_PATH=/usr/local/lib | ||
CPATH=/usr/local/include | ||
CPLUS_INCLUDE_PATH=/usr/include/gdal | ||
C_INCLUDE_PATH=/usr/include/gdal | ||
PYTHONIOENCODING=utf-8 | ||
|
||
commands = | ||
coverage erase | ||
coverage run --source={toxinidir}/malybar malybar/manage.py test | ||
coverage report | ||
coverage xml | ||
|
||
deps = | ||
-rrequirements.txt | ||
-rrequirements-dev.txt |