Adds travis-ci auto deploy
This commit is contained in:
parent
0b3abb8f1f
commit
f579f4af35
65
.travis.yml
65
.travis.yml
|
@ -1,44 +1,55 @@
|
|||
language: python
|
||||
sudo: false
|
||||
cache:
|
||||
- apt
|
||||
- pip
|
||||
- apt
|
||||
- pip
|
||||
services:
|
||||
- memcached
|
||||
- memcached
|
||||
python:
|
||||
- "2.7"
|
||||
- "3.4"
|
||||
- "3.5"
|
||||
- '2.7'
|
||||
- '3.4'
|
||||
- '3.5'
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- python3-enchant
|
||||
- python2-enchant
|
||||
- graphviz
|
||||
- python3-enchant
|
||||
- python2-enchant
|
||||
- graphviz
|
||||
env:
|
||||
global:
|
||||
- DISPLAY=:99.0
|
||||
- DISPLAY=:99.0
|
||||
matrix:
|
||||
- DJANGO="Django<1.9,>=1.8"
|
||||
- DJANGO="Django<1.10,>=1.9"
|
||||
- DJANGO="-e git+https://github.com/django/django.git@master#egg=Django"
|
||||
- DJANGO="Django<1.9,>=1.8"
|
||||
- DJANGO="Django<1.10,>=1.9"
|
||||
- DJANGO="-e git+https://github.com/django/django.git@master#egg=Django"
|
||||
matrix:
|
||||
fast_finish: true
|
||||
allow_failures:
|
||||
- env: DJANGO="-e git+https://github.com/django/django.git@master#egg=Django"
|
||||
- env: DJANGO="-e git+https://github.com/django/django.git@master#egg=Django"
|
||||
install:
|
||||
- pip install --upgrade pip
|
||||
- pip install -r requirements_dev.txt
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]] || [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then pip install python-memcached; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]] || [[ $TRAVIS_PYTHON_VERSION == pypy3 ]]; then pip install python3-memcached; fi
|
||||
- pip install $DJANGO
|
||||
- pip install coveralls
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
- pip install --upgrade pip
|
||||
- pip install -r requirements_dev.txt
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]] || [[ $TRAVIS_PYTHON_VERSION == pypy ]]; then
|
||||
pip install python-memcached; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == 3* ]] || [[ $TRAVIS_PYTHON_VERSION == pypy3 ]];
|
||||
then pip install python3-memcached; fi
|
||||
- pip install $DJANGO
|
||||
- pip install coveralls
|
||||
- sh -e /etc/init.d/xvfb start
|
||||
script:
|
||||
- isort --check-only --recursive --diff .
|
||||
- flake8 --jobs=2 .
|
||||
- pep257 --explain --source --count django_select2
|
||||
- (cd docs; make spelling)
|
||||
- coverage run --source=django_select2 -m py.test
|
||||
- isort --check-only --recursive --diff .
|
||||
- flake8 --jobs=2 .
|
||||
- pep257 --explain --source --count django_select2
|
||||
- "(cd docs; make spelling)"
|
||||
- coverage run --source=django_select2 -m py.test
|
||||
after_success:
|
||||
- coveralls
|
||||
- coveralls
|
||||
deploy:
|
||||
provider: pypi
|
||||
user: codingjoe
|
||||
password:
|
||||
secure: fEP9K7y0ZF9fRvQEUN4kgPXQEZvi3Cx3ikUebG2UM/2uhcaUQm0+KpgZ2S+lvOTYcBnNgzPzFsVIZMcVcTxwIKuQDEMq9y2eop2hnisb9KXsIm9qPYSzOnRm74VuiOt4hNOZMe0qVBK2cO3vC9NDXuzdI8A0JynJhthfl4t+kFM=
|
||||
on:
|
||||
tags: true
|
||||
distributions: sdist bdist_wheel
|
||||
repo: applegrew/django-select2
|
||||
|
|
|
@ -3,3 +3,6 @@ recursive-include django_select2/static *.*
|
|||
recursive-exclude django_select2/static .DS_Store
|
||||
exclude requirements_dev.txt
|
||||
prune tests
|
||||
|
||||
[bdist_wheel]
|
||||
universal=1
|
||||
|
|
Loading…
Reference in New Issue