Skip to content

Commit

Permalink
changed travis' conf
Browse files Browse the repository at this point in the history
  • Loading branch information
ar4s committed Mar 26, 2016
1 parent 1d3e58c commit e48f6d5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ python:
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- pip install -e .
- python setup.py test
- pip install tox-travis

script: tox
Expand Down
3 changes: 3 additions & 0 deletions runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sites",
"django.contrib.staticfiles",
"dedal",
"example.blog",
"bootstrapform",
],
SITE_ID=1,
NOSE_ARGS=['-s'],
MIDDLEWARE_CLASSES=(),
STATIC_URL='/static/'
)

try:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_unregister_should_raise_error_when_not_in_register(self):
class DedalObject(TestCase):
def test_actions(self):
actions = [ACTION_CREATE]
instance = Dedal(Post, actions)
instance = Dedal(site, Post, actions)
for action in actions:
self.assertTrue(hasattr(instance, action), action)

Expand Down
7 changes: 5 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ deps =
djmaster: https://github.com/django/django/archive/master.tar.gz
nose
django-nose
ddt


[tox:travis]
2.7 = py27
3.4 = py34
3.4-1.8 = py34-dj18
3.4-1.7 = py34-dj17
3.4-1.9 = py34-dj19
3.4-master = py34-djmaster

0 comments on commit e48f6d5

Please sign in to comment.