diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 0000000..666a87d --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1 @@ +repo_token: HuZw0G35Rwk87XmqwF9Zfg diff --git a/.gitignore b/.gitignore index 596884a..9555355 100644 --- a/.gitignore +++ b/.gitignore @@ -91,3 +91,6 @@ ENV/ # SQLite3 db.sqlite3 + +# vscode directory +.vscode/ \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d73b121 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,29 @@ +language: python + +python: + - "3.6" + +services: postgresql + +env: + - DJANGO=2.1.3 + +install: + - pip install -r requirements.txt + - pip install coveralls + - pip install coverage + +before_script: + - psql -c "CREATE DATABASE athenatraviscidb;" -U postgres + - python manage.py makemigrations + - python manage.py migrate + +script: + - coverage run --source='.' ./manage.py test + - coverage report + +after_success: + - coveralls + +notifications: + email: false \ No newline at end of file diff --git a/README.md b/README.md index c5d0571..8ebf013 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/andela/ah-backend-athena.svg?branch=ch-travis-readme-badge-162163256)](https://travis-ci.org/andela/ah-backend-athena) + Authors Haven - A Social platform for the creative at heart. ======= diff --git a/authors/settings.py b/authors/settings.py index 071ae4c..3403655 100644 --- a/authors/settings.py +++ b/authors/settings.py @@ -78,6 +78,7 @@ # Database # https://docs.djangoproject.com/en/1.11/ref/settings/#databases + DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3',