Skip to content

Commit

Permalink
updated travis conf, fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ramusus committed Apr 3, 2014
1 parent 4272fe2 commit 8388e38
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ before_script:
- mysql -e 'create database django;'
- psql -c 'create database django;' -U postgres
install:
- if [[ $DB == mysql ]]; then pip install mysql-python --use-mirrors; fi
- if [[ $DB == postgres ]]; then pip install psycopg2 --use-mirrors; fi
- if [[ $DB == mysql ]]; then pip install mysql-python; fi
- if [[ $DB == postgres ]]; then pip install psycopg2; fi
- DJANGO_VER=$(./travis_django_version.py $DJANGO)
- pip install $DJANGO_VER --use-mirrors
- pip install simplejson --use-mirrors
- pip install factory_boy --use-mirrors
- pip install coveralls --use-mirrors
- pip install mock --use-mirrors
- pip install . --use-mirrors
- pip install $DJANGO_VER
- pip install simplejson
- pip install factory_boy
- pip install coveralls
- pip install mock
- pip install .
script:
- django-admin.py --version
- coverage run --source=vkontakte_api quicktest.py vkontakte_api
Expand Down
1 change: 1 addition & 0 deletions vkontakte_api/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class User(VkontaktePKModel):
'''
Test model should be on top level, otherwise table will not be created
'''
resolve_screen_name_type = 'user'
screen_name = models.CharField(u'Короткое имя группы', max_length=50, unique=True)
slug_prefix = 'id'

Expand Down

0 comments on commit 8388e38

Please sign in to comment.