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

Upgrade Travis config, and only run mysql/psql in relevant configs #162

Merged
merged 3 commits into from Apr 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 9 additions & 7 deletions .travis.yml
@@ -1,17 +1,19 @@
sudo: false
dist: bionic
os: linux
language: python
python:
- "2.7"
- "3.4"
- "3.7"
env:
- DJANGO=1.11.* DJANGO_SETTINGS_MODULE='settings_sqllite'
- DJANGO=1.11.* DJANGO_SETTINGS_MODULE='settings_postgres'
- DJANGO=1.11.* DJANGO_SETTINGS_MODULE='settings_mysql'
- DJANGO=2.0.* DJANGO_SETTINGS_MODULE='settings_sqllite'
- DJANGO=2.0.* DJANGO_SETTINGS_MODULE='settings_postgres'
- DJANGO=2.0.* DJANGO_SETTINGS_MODULE='settings_mysql'
addons:
- postgresql: "9.3"
services:
- mysql
- postgresql
install:
- pip install -q Django==$DJANGO
- pip install coveralls
Expand All @@ -21,10 +23,10 @@ script:
after_success:
- coveralls
before_script:
- mysql -e 'create database travis_test;'
- psql -c 'create database travis_test;' -U postgres
- if [ "$DJANGO_SETTINGS_MODULE" = "settings_mysql" ]; then mysql -e 'create database travis_test;' ; fi
- if [ "$DJANGO_SETTINGS_MODULE" = "settings_postgres" ]; then psql -c 'create database travis_test;' -U postgres ; fi
- flake8 . --config=flake8
matrix:
jobs:
exclude:
- python: "2.7"
env: DJANGO=2.0.* DJANGO_SETTINGS_MODULE='settings_sqllite'
Expand Down