Skip to content

Commit

Permalink
Initial travis-ci build config
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed Jan 31, 2017
1 parent cd533ff commit 99f63c7
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# local ignores
test.db
testsettings.py

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: python

python:
- "3.5"

install:
- pip install -e .
- pip install -e '.[test]'
- pip install codecov
- cp ci/testsettings.py testsettings.py
- python -c "import uuid; print('SECRET_KEY = \'%s\'' % uuid.uuid4())" >> testsettings.py

script:
- py.test --cov=djiffy

after_success:
- codecov
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
include LICENSE
include README.rst
recursive-include djiffy/static *
recursive-include djiffy/templates *
11 changes: 11 additions & 0 deletions ci/testsettings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# minimal django settings required to run tests
DATABASES = {
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": "test.db",
}
}

INSTALLED_APPS = ('djiffy',)

# SECRET_KEY = ''

0 comments on commit 99f63c7

Please sign in to comment.