Skip to content

Commit

Permalink
Test suite updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bartTC committed Mar 23, 2016
1 parent 998c3aa commit 65b89aa
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 44 deletions.
File renamed without changes.
31 changes: 11 additions & 20 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,22 @@
sudo: false

language: python

python:
- 2.7
- 3.4
- 3.5

env:
- DJANGO=1.4.21
- DJANGO=1.7.9
- DJANGO=1.8.3

matrix:
exclude:
- python: 3.4
env: DJANGO=1.4.21
- python: 3.4
env: DJANGO=1.7.9
- DJANGO=1.8.*
- DJANGO=1.9.*

branches:
only:
- master
- develop
before_install:
- pip install codecov

install:
- "pip install Django==$DJANGO"
- "pip install -e ."
- pip install django==$DJANGO
- pip install -e .

script:
python runtests.py
- coverage run runtests.py

after_success:
- codecov
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
# -----------------------------------------------------------------------------

# Project dependencies
django==1.8.3
django-mptt==0.7.4
pygments==2.0.1
requests==2.5.1
django==1.9.*
django-mptt
pygments
requests

# Testing
coverage
Expand Down
13 changes: 13 additions & 0 deletions runtests.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@
# 'PASSWORD': '',
# }
},
'TEMPLATES': [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
],
},
},
],
'INSTALLED_APPS': [
'django.contrib.sessions',
'django.contrib.staticfiles',
Expand Down
3 changes: 0 additions & 3 deletions runtests.sh

This file was deleted.

4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def run_tests(self):
},
include_package_data=True,
install_requires=[
'django>=1.4',
'django-mptt>=0.7.4',
'django>=1.8',
'django-mptt>=0.8.3',
'pygments>=1.6',
'requests>=2.0.0',
],
Expand Down
23 changes: 8 additions & 15 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
[tox]
toxworkdir=/tmp/tox/dpaste
envlist=
py27-django-1.4,
py27-django-1.7,
py27-django-1.8,
py34-django-1.8
py{27,35}-django-{18,19}

[testenv]
install_command =
pip install {opts} {packages}

commands=
python runtests.py

[testenv:py27-django-1.4]
deps=django==1.4.21

[testenv:py27-django-1.7]
deps=django==1.7.9

[testenv:py27-django-1.8]
deps=django==1.8.3

[testenv:py34-django-1.8]
deps=django==1.8.3
deps=
# Django versions
django-18: django==1.8.*
django-19: django==1.9.*

0 comments on commit 65b89aa

Please sign in to comment.