Skip to content

Commit

Permalink
add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
tomi77 committed May 6, 2017
1 parent 640a184 commit 3074cb0
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
engines:
duplication:
enabled: true
config:
languages:
- python
fixme:
enabled: true
radon:
enabled: true
pep8:
enabled: true
ratings:
paths:
- "authrole/**.py"
24 changes: 24 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# .coveragerc to control coverage.py
[run]
branch = True
source = authrole
omit =
authrolw/tests.py

[report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover

# Don't complain about missing debug-only code:
def __repr__
if self\.debug

# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError

# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

[*]
end_of_line = lf
insert_final_newline = false
trim_trailing_whitespace = true
charset = utf-8

[*.py]
indent_style = space
indent_size = 4
38 changes: 38 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
language: python

python:
- 2.7

env:
- DJANGO=1.4.22
- DJANGO=1.5.12
- DJANGO=1.6.11
- DJANGO=1.7.11
- DJANGO=1.8.18
- DJANGO=1.9.13
- DJANGO=1.10.7
- DJANGO=1.11

matrix:
include:
- python: 3.4
env: DJANGO=1.11
- python: 3.5
env: DJANGO=1.11
- python: 3.6
env: DJANGO=1.11

install:
- pip install coveralls pyyaml south
- pip install -q Django==$DJANGO
- pip install --upgrade mock

before_script:
- ./travis_syncdb.sh
- python manage.py migrate

script:
- coverage run manage.py test tests

after_success:
- coveralls
7 changes: 7 additions & 0 deletions travis_syncdb.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

CNT=`python manage.py|grep syncdb|wc -l`

if [ $CNT -gt 0 ]; then
python manage.py syncdb --noinput
fi

0 comments on commit 3074cb0

Please sign in to comment.