mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-23 23:23:06 +11:00
Test suite updates
This commit is contained in:
parent
998c3aaf82
commit
65b89aa38e
7 changed files with 38 additions and 44 deletions
31
.travis.yml
31
.travis.yml
|
@ -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
|
||||
- DJANGO=1.8.*
|
||||
- DJANGO=1.9.*
|
||||
|
||||
matrix:
|
||||
exclude:
|
||||
- python: 3.4
|
||||
env: DJANGO=1.4.21
|
||||
- python: 3.4
|
||||
env: DJANGO=1.7.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
|
||||
|
|
|
@ -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
|
||||
|
|
13
runtests.py
Normal file → Executable file
13
runtests.py
Normal file → Executable file
|
@ -16,6 +16,19 @@ SETTINGS = {
|
|||
# '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',
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
coverage run --rcfile=./.coverage.rc runtests.py && \
|
||||
coverage html --rcfile=./.coverage.rc
|
||||
|
4
setup.py
4
setup.py
|
@ -49,8 +49,8 @@ setup(
|
|||
},
|
||||
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',
|
||||
],
|
||||
|
|
23
tox.ini
23
tox.ini
|
@ -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.*
|
||||
|
|
Loading…
Reference in a new issue