Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change mysql python lib package to avoid unsupported version errors #7

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ services:
- mysql

before_install:
- export DJANGO_SETTINGS_MODULE=eris_hub.settings
- export DJANGO_SETTINGS_MODULE=eris_hub.settings.travis
- export PIP_USE_MIRRORS=true
- sudo apt-get install python3-dev libmysqlclient-dev

install:
- pip install -r requirements.txt
Expand All @@ -17,4 +18,6 @@ before_script:
- mysql -e 'CREATE DATABASE IF NOT EXISTS eris_test;'

script:
- python manage.py syncdb --noinput
- python manage.py makemigrations
- python manage.py migrate
- python manage.py test
Empty file added eris_hub/settings/__init__.py
Empty file.
File renamed without changes.
11 changes: 11 additions & 0 deletions eris_hub/settings/travis.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from .common import *

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'eris_test',
'USER': 'root',
'HOST': 'localhost',
'PORT': '3306',
}
}
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
MySQL-python==1.2.5
Django==1.11.4
django-filter==1.0.4
mysqlclient==1.3.12