Skip to content

Commit

Permalink
Merge pull request #52 from ambitioninc/develop
Browse files Browse the repository at this point in the history
1.1.0
  • Loading branch information
somewes committed Mar 29, 2018
2 parents ad5e5e5 + 422225b commit b9a71ae
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 14 deletions.
50 changes: 39 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,47 @@
sudo: false
language: python

sudo: false

python:
- '3.5'
- '3.6'
- "2.7"
- "3.4"
- "3.5"
- "3.6"

env:
global:
- DB=postgres
matrix:
- DJANGO=">=1.11,<2.0"
- DJANGO=">=2.0,<2.1"
- DJANGO=1.10
- DJANGO=1.11
- DJANGO=2.0
- DJANGO=master

addons:
postgresql: '9.5'

matrix:
include:
- { python: "3.6", env: TOXENV=flake8 }

exclude:
- { python: "2.7", env: DJANGO=master }
- { python: "2.7", env: DJANGO=2.0 }
- { python: "3.4", env: DJANGO=master }
- { python: "3.6", env: DJANGO=1.10 }

allow_failures:
- env: DJANGO=master

install:
- pip install -q coverage flake8 Django$DJANGO django-nose>=1.4
- pip install tox-travis

before_script:
- flake8 .
- psql -c 'CREATE DATABASE dynamic_initial_data;' -U postgres

script:
- coverage run setup.py test
- coverage report --fail-under=100
- tox

after_success:
coveralls

notifications:
email: false
4 changes: 4 additions & 0 deletions dynamic_initial_data/docs/release_notes.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Release Notes
=============

v1.1.0
------
* Add tox to support more versions

v1.0.0
------
* Drop Django 1.9 support
Expand Down
2 changes: 1 addition & 1 deletion dynamic_initial_data/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.0.0'
__version__ = '1.1.0'
6 changes: 6 additions & 0 deletions requirements/requirements-testing.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage
django-dynamic-fixture
django-nose
freezegun
mock
psycopg2
9 changes: 7 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,22 @@ def get_version():
packages=find_packages(),
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Framework :: Django',
'Framework :: Django :: 1.10',
'Framework :: Django :: 1.11',
'Framework :: Django :: 2.0',
],
license='MIT',
install_requires=[
'Django>=1.11',
'django-manager-utils>=1.0.0',
'Django>=1.10',
'django-manager-utils>=1.1.1',
],
tests_require=[
'psycopg2',
Expand Down
31 changes: 31 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[tox]
envlist =
flake8
py{27,34,35}-django110
py{27,34,35,36}-django111
py{34,35,36}-django20
py{35,36}-djangomaster

[testenv]
setenv =
DB = postgres
deps =
django110: Django>=1.10,<1.11
django111: Django>=1.11,<2.0
django20: Django>=2.0,<2.1
djangomaster: https://github.com/django/django/archive/master.tar.gz
-rrequirements/requirements-testing.txt
commands =
coverage run setup.py test
coverage report --fail-under=100

[testenv:flake8]
deps = flake8
commands = flake8 dynamic_initial_data

[travis:env]
DJANGO =
1.10: django110
1.11: django111
2.0: django20
master: djangomaster

0 comments on commit b9a71ae

Please sign in to comment.