Skip to content

Commit

Permalink
166263767-chore(travis): Travis integration
Browse files Browse the repository at this point in the history
- Update .travis.yml file
- Update README
- Integrate coverage
- Add coveralls badge

[#166263767]
  • Loading branch information
misocho committed May 29, 2019
1 parent e85134c commit 57247b4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ sudo: false

# Python versions to test
python:
- "2.7"
- "3.4"
- "3.5"
- "3.6"

# Manually define here the combinations environment variables to test
# https://github.com/travis-ci/travis-ci/issues/1519
Expand All @@ -43,8 +42,8 @@ install:
- if [[ "$DB" = "postgresql" ]]; then pip install psycopg2; fi

# Setup application
- if [[ "$DB" = "sqlite" ]]; then invoke create_settings; fi
- if [[ "$DB" = "postgresql" ]]; then invoke create_settings --database-type postgresql; fi
- if [[ "$DB" = "sqlite" ]]; then invoke create-settings; fi
- if [[ "$DB" = "postgresql" ]]; then invoke create-settings --database-type postgresql; fi

# Create test databases
before_script:
Expand All @@ -54,7 +53,7 @@ before_script:
# Do the tests
script:
# Formatting
- pep8 wger
- pycodestyle wger

# Javascript linting
- gulp lint
Expand All @@ -65,3 +64,10 @@ script:

# Code coverage
- coverage report

# Run coveralls
- coveralls

after_success:
# Push coverage report to coveralls
- coveralls
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
.. image:: https://travis-ci.com/andela/wg-fortem.svg?branch=develop
:target: https://travis-ci.com/andela/wg-fortem
.. image:: https://coveralls.io/repos/github/andela/wg-fortem/badge.svg?branch=develop
:target: https://coveralls.io/github/andela/wg-fortem?branch=develop



Thank you for downloading wger Workout Manager. wger (ˈvɛɡɐ) is a free, open source web
application that manages your exercises and personal workouts, weight and diet
plans. It can also be used as a simple gym management utility, providing different
Expand Down
2 changes: 1 addition & 1 deletion requirements_devel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
-r requirements.txt

# Development packages
pep8
pycodestyle
django-debug-toolbar
coverage

0 comments on commit 57247b4

Please sign in to comment.