Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
language: python
python:
- "2.7"
install: pip install -r requirements.txt
script: DJANGO_SETTINGS_MODULE="settings" nosetests --with-coverage --with-django

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet! - we need a few things added in here:
Calling pep8 checks
Calling pylint checks
After running tests, we need to run the coverage report.

Once you've got that running we may need to increase the coverage if we are missing a lot ;-)

Please take a look at https://github.com/edx/edx-milestones/blob/master/.travis.yml for a good example

6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ If you want to run only the integration or the unit tests, append the directory
$ DJANGO_SETTINGS_MODULE="settings" nosetests --with-django tests/unit
```

To see the coverage, run the tests using the following command:

```bash
$ DJANGO_SETTINGS_MODULE="settings" nosetests --with-coverage --with-django
```

If you have not installed the xblock-sdk in the active virtualenv,
you might also have to prepend `PYTHONPATH=".:/path/to/xblock"` to the command above.
(`/path/to/xblock` is the path to the xblock-sdk, where the workbench resides).
Expand Down
Loading