Skip to content

Commit

Permalink
chore(code coverage service):cReconfigure travis intergration
Browse files Browse the repository at this point in the history
-Uncomment lines in the settings.py that are making the travis build fail

[Deliveres #161966602]
  • Loading branch information
The-technocrats committed Nov 27, 2018
1 parent 834bd3b commit aba2a9f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ 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:
- python3 manage.py makemigrations && migrate
- coverage run --source=. manage.py test
- ./manage.py makemigrations
- ./manage.py migrate
- coverage run --source=. manage.py test
- coverage report

after_script:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
![license](https://img.shields.io/github/license/mashape/apistatus.svg)
[![Build Status](https://travis-ci.org/andela/ah-technocrats.svg?branch=ch-travis-integration-161966599)](https://travis-ci.org/andela/ah-technocrats.svg?branch=ch-travis-integration-161966599)
[![Build Status](https://travis-ci.org/andela/ah-technocrats.svg?branch=ch-travis-integration-161966599)](https://travis-ci.org/andela/ah-technocrats)

Authors Haven - A Social platform for the creative at heart.
## Vision
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 aba2a9f

Please sign in to comment.