Skip to content

Commit

Permalink
fix(Reconfigure travis): Edit README.md file
Browse files Browse the repository at this point in the history
-Modify the link for Travis CI

[Delivers #162248380]
* chore(Integrate #161966599): Add Travis configurations

* chore(Integrate #161966599): Add Travis configurations

* chore(code coverage service):cReconfigure travis intergration

-Uncomment lines in the settings.py that are making the travis build fail

[Deliveres #161966602]
  • Loading branch information
salma-nyagaka authored and The-technocrats committed Nov 28, 2018
1 parent ebaaf85 commit 719fdf7
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: python

python:
- "3.6"

services:
- postgresql

install:
- pip install -r requirements.txt
- pip install coveralls

global:
- GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)

script:
- ./manage.py makemigrations
- ./manage.py migrate
- coverage run --source=. manage.py test
- coverage report

after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -t coverage.py
- nyc report --reporter=html

after_success:
- "coveralls"
- "codeclimate-test-reporter"
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Authors Haven - A Social platform for the creative at heart.
=======
![license](https://img.shields.io/github/license/mashape/apistatus.svg)
[![Build Status](https://travis-ci.org/andela/ah-technocrats.svg?branch=develop)](https://travis-ci.org/andela/ah-technocrats)

## Authors Haven
A Social platform for the creative at heart.
## Vision
Create a community of like minded authors to foster inspiration and innovation
by leveraging the modern web.
Expand Down
4 changes: 2 additions & 2 deletions authors/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'corsheaders.middleware.CorsMiddleware',
# 'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
Expand Down Expand Up @@ -138,6 +138,6 @@
'NON_FIELD_ERRORS_KEY': 'error',

'DEFAULT_AUTHENTICATION_CLASSES': (
'authors.apps.authentication.backends.JWTAuthentication',
# 'authors.apps.authentication.backends.JWTAuthentication',
),
}

0 comments on commit 719fdf7

Please sign in to comment.