-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
NyanKiyoshi
committed
Aug 2, 2019
1 parent
d3fd6dc
commit 48db2b2
Showing
2 changed files
with
37 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,50 @@ | ||
dist: xenial | ||
language: python | ||
|
||
python: | ||
- "3.7" | ||
- "3.6" | ||
- "3.5" | ||
- "2.7" | ||
|
||
env: | ||
matrix: | ||
- DJANGO=2.2 | ||
- DJANGO=2.1 | ||
- DJANGO=2.0 | ||
- DJANGO=1.11 | ||
|
||
- DJANGO_VERSION=">=2.2.0,<2.3" | ||
- DJANGO_VERSION=">=2.1.0,<2.2" | ||
- DJANGO_VERSION=">=2.0.0,<2.1" | ||
- DJANGO_VERSION=">=1.11.0,<2.0.0" | ||
matrix: | ||
include: | ||
- env: STAGE=lint | ||
python: "3.6" | ||
exclude: | ||
- python: "3.4" | ||
env: DJANGO=2.2.2 | ||
- python: "3.4" | ||
env: DJANGO=2.1.9 | ||
- python: "2.7" | ||
env: DJANGO=2.2.2 | ||
- python: "2.7" | ||
env: DJANGO=2.1.9 | ||
- python: "2.7" | ||
env: DJANGO=2.0.13 | ||
|
||
- python: "2.7" | ||
env: DJANGO_VERSION=">=2.2.0,<2.3" | ||
- python: "2.7" | ||
env: DJANGO_VERSION=">=2.1.0,<2.2" | ||
- python: "2.7" | ||
env: DJANGO_VERSION=">=2.0.0,<2.1" | ||
install: | ||
- > | ||
if [ -n "$DJANGO" ]; then | ||
pip install -r dev-env-requirements.txt | ||
pip install "django>=$DJANGO" | ||
pip install codecov | ||
elif [[ "$STAGE" == "lint" ]]; then | ||
pip install flake8 | ||
fi | ||
- pip install -r dev-env-requirements.txt | ||
- pip install "django$DJANGO_VERSION" | ||
- pip install codecov | ||
script: | ||
- > | ||
if [ -n "$DJANGO" ]; then | ||
./setup.py test | ||
elif [[ "$STAGE" == "lint" ]]; then | ||
flake8 | ||
fi | ||
- ./setup.py test | ||
after_success: | ||
- codecov | ||
|
||
deploy: | ||
provider: pypi | ||
user: tfoxy-bot | ||
password: | ||
secure: K2Qh5rx1tEoOc28W7y4sYyja/QK/L8HxNjtZjwV/5cb/3GbPckzFAUAz5YdpBU+VYvOCllRcACNq/vpJN4gCmIti9gbPIUEHeBkSxEvhG91KNqO0OLplkM9AaUQP14xLxYi/tdP0twtbMNleR8FAt350KUrxCQOvt6QMuTeVErNv4bGD+QW6nPh6caeY/2Zfm5YWDQrehLfVjlthxkozxBaqlWQzXQqY80VjQ4q77JkQ0kCRVcuDUgvIsn1wGh1Sdfoegu9Grp5yQisMW7b9BkTrFaFtZasLg+SuW81quMeA8390AUiKdjS3LF2FnjetxG52VhBEnonw8JbaVr/ZLVcYtd0CChF9AxUdriJ80i7S+9SvI4JGNtG8Vdr0B8JdDklXcAycu+/tMynAqPjmRFROK3vpqMBdFfi2GO71ZECcXAuJbj30ED30MOxlPRAZMuoLmLuADrO2wH9g7h/p51XaCdnvhE+HN/gx+0Aw2e2qieD6qBEaT10UA0J3nppymmLNwUdVqTlcnjIdaLqZTKPdNSS2SWeEcvrc9Y0R0F28nQbXUvNX6stgJKSzn+zL/v31BSwIOPOKFCY5vp0fORL2zTQ/PmwmHZeOedEniphL7yrP5+UJTMnaY3l6CpwMUhabVJFkIm3jz62mohzhe7k5pe/D0x3wz+fq8gQ4vqg= | ||
on: | ||
tags: true | ||
jobs: | ||
include: | ||
- stage: lint | ||
install: | ||
- pip install flake8==3.7.7 | ||
script: | ||
- flake8 | ||
- stage: deploy | ||
if: tag IS present | ||
install: true | ||
script: skip | ||
deploy: | ||
provider: pypi | ||
user: tfoxy-bot | ||
password: | ||
secure: K2Qh5rx1tEoOc28W7y4sYyja/QK/L8HxNjtZjwV/5cb/3GbPckzFAUAz5YdpBU+VYvOCllRcACNq/vpJN4gCmIti9gbPIUEHeBkSxEvhG91KNqO0OLplkM9AaUQP14xLxYi/tdP0twtbMNleR8FAt350KUrxCQOvt6QMuTeVErNv4bGD+QW6nPh6caeY/2Zfm5YWDQrehLfVjlthxkozxBaqlWQzXQqY80VjQ4q77JkQ0kCRVcuDUgvIsn1wGh1Sdfoegu9Grp5yQisMW7b9BkTrFaFtZasLg+SuW81quMeA8390AUiKdjS3LF2FnjetxG52VhBEnonw8JbaVr/ZLVcYtd0CChF9AxUdriJ80i7S+9SvI4JGNtG8Vdr0B8JdDklXcAycu+/tMynAqPjmRFROK3vpqMBdFfi2GO71ZECcXAuJbj30ED30MOxlPRAZMuoLmLuADrO2wH9g7h/p51XaCdnvhE+HN/gx+0Aw2e2qieD6qBEaT10UA0J3nppymmLNwUdVqTlcnjIdaLqZTKPdNSS2SWeEcvrc9Y0R0F28nQbXUvNX6stgJKSzn+zL/v31BSwIOPOKFCY5vp0fORL2zTQ/PmwmHZeOedEniphL7yrP5+UJTMnaY3l6CpwMUhabVJFkIm3jz62mohzhe7k5pe/D0x3wz+fq8gQ4vqg= | ||
on: | ||
tags: true | ||
stages: | ||
- test | ||
- lint | ||
- deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ def read(fname): | |
|
||
setup( | ||
name='graphene-django-optimizer', | ||
version='0.5.0', | ||
version='0.6.0', | ||
author='Tomás Fox', | ||
author_email='[email protected]', | ||
description='Optimize database access inside graphene queries.', | ||
|
@@ -34,12 +34,9 @@ def read(fname): | |
'Programming Language :: Python', | ||
'Programming Language :: Python :: 2.7', | ||
'Programming Language :: Python :: 3', | ||
'Programming Language :: Python :: 3.4', | ||
'Programming Language :: Python :: 3.5', | ||
'Programming Language :: Python :: 3.6', | ||
'Framework :: Django', | ||
'Framework :: Django :: 1.9', | ||
'Framework :: Django :: 1.10', | ||
'Framework :: Django :: 1.11', | ||
'Framework :: Django :: 2.0', | ||
'Framework :: Django :: 2.1', | ||
|