diff options
-rw-r--r-- | .coveragerc | 18 | ||||
-rw-r--r-- | .travis.yml | 25 | ||||
-rw-r--r-- | fossee_anime/local_settings.py | 7 | ||||
-rw-r--r-- | fossee_manim/local_settings.py | 9 | ||||
-rw-r--r-- | requirements.txt | 1 |
5 files changed, 60 insertions, 0 deletions
diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..d0587f8 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,18 @@ +[run] +branch = True +source = . +omit = + *tests* + *migrations* + *init* + local_settings.py + fossee_manim/apps.py + fossee_anime/settings.py + fossee_anime/wsgi.py + + +[report] +exclude_lines = + except ImportError: + raise NotImplementedError + if __name__ == .__main__.:
\ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..6e1fb31 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,25 @@ +language: python + +python: + - "3.5" + +before_install: + - sudo apt-get update -qq + - "export DISPLAY=:99.0" + - "sh -e /etc/init.d/xvfb start" + - sleep 3 # give xvfb some time to start + +# command to install dependencies +install: + - pip install -r requirements.txt + +# command to run tests and coverage +script: + - python manage.py makemigrations + - python manage.py migrate + - coverage erase + - coverage run -p manage.py test -v2 + +after_success: + - coverage combine + - coverage report
\ No newline at end of file diff --git a/fossee_anime/local_settings.py b/fossee_anime/local_settings.py new file mode 100644 index 0000000..88c3471 --- /dev/null +++ b/fossee_anime/local_settings.py @@ -0,0 +1,7 @@ +EMAIL_HOST = 'your smtp host name' +EMAIL_PORT = 'PORT Number' +EMAIL_HOST_USER = 'your username' +EMAIL_HOST_PASSWORD = 'your password' +EMAIL_USE_TLS = True +SENDER_EMAIL = 'your email address' +SECRET_KEY_SETTINGS = 'KEY'
\ No newline at end of file diff --git a/fossee_manim/local_settings.py b/fossee_manim/local_settings.py new file mode 100644 index 0000000..3a98426 --- /dev/null +++ b/fossee_manim/local_settings.py @@ -0,0 +1,9 @@ +# This file contains all information related to admin credentials for email, +# db etc. + +EMAIL_HOST = 'your smtp host name' +EMAIL_PORT = 'PORT Number' +EMAIL_HOST_USER = 'your username' +EMAIL_HOST_PASSWORD = 'your password' +EMAIL_USE_TLS = True +SENDER_EMAIL = 'your email address' diff --git a/requirements.txt b/requirements.txt index 27e309b..4b62b55 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,3 +8,4 @@ Pillow==5.4.1 pytz==2018.9 requests==2.21.0 urllib3==1.24.1 +coverage |