Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

travis: run django-1.11.18 tests #328

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

Merged
merged 4 commits into from
Feb 7, 2019
Merged
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
25 changes: 25 additions & 0 deletions 25 .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,29 @@ script:
after_succes:
- codecov

matrix:
include:
- &django_py27
python: "2.7"
install:
- pip install -U pip
- wget https://github.com/django/django/archive/1.11.18.tar.gz
- tar xf 1.11.18.tar.gz
- pip install django-1.11.18/
- cp ci/test_mysql.py django-1.11.18/tests/
- pip install .

before_script:
- mysql -e 'create user django identified by "secret"'
- mysql -e 'grant all on *.* to django'
- mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql mysql

script:
- cd django-1.11.18/tests/
- ./runtests.py --parallel=1 --settings=test_mysql

- &django_py3
<<: *django_py27
python: "3.7"

# vim: sw=2 ts=2 sts=2
45 changes: 45 additions & 0 deletions 45 ci/test_mysql.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This is an example test settings file for use with the Django test suite.
#
# The 'sqlite3' backend requires only the ENGINE setting (an in-
# memory database will be used). All other backends will require a
# NAME and potentially authentication information. See the
# following section in the docs for more information:
#
# https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/unit-tests/
#
# The different databases that Django supports behave differently in certain
# situations, so it is recommended to run the test suite against as many
# database backends as possible. You may want to create a separate settings
# file for each of the backends you test against.

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'django_default',
'USER': 'django',
'HOST': '127.0.0.1',
'PASSWORD': 'secret',
'TEST': {
'CHARSET': 'utf8mb4',
'COLLATION': 'utf8mb4_general_ci',
},
},
'other': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'django_other',
'USER': 'django',
'HOST': '127.0.0.1',
'PASSWORD': 'secret',
'TEST': {
'CHARSET': 'utf8mb4',
'COLLATION': 'utf8mb4_general_ci',
},
}
}

SECRET_KEY = "django_tests_secret_key"

# Use a fast hasher to speed up tests.
PASSWORD_HASHERS = [
'django.contrib.auth.hashers.MD5PasswordHasher',
]
Morty Proxy This is a proxified and sanitized view of the page, visit original site.