67 lines
1.5 KiB
YAML
67 lines
1.5 KiB
YAML
language: python
|
|
sudo: false
|
|
dist: trusty
|
|
cache:
|
|
- apt
|
|
- pip
|
|
services:
|
|
- redis
|
|
addons:
|
|
firefox: latest
|
|
apt:
|
|
sources:
|
|
- google-chrome
|
|
packages:
|
|
- google-chrome-stable
|
|
- python3-enchant
|
|
- python-enchant
|
|
- graphviz
|
|
python:
|
|
- "2.7"
|
|
- "3.5"
|
|
- "3.6"
|
|
env:
|
|
global:
|
|
- DISPLAY=:99.0
|
|
- GECKO_DRIVER_VERSION=v0.14.0
|
|
matrix:
|
|
- TOXENV=qa
|
|
- TOXENV=docs
|
|
- DJANGO=18
|
|
- DJANGO=19
|
|
- DJANGO=110
|
|
- DJANGO=master
|
|
matrix:
|
|
fast_finish: true
|
|
allow_failures:
|
|
- env: DJANGO=master
|
|
install:
|
|
- pip install --upgrade pip tox
|
|
- pip install -U coveralls
|
|
- sh -e /etc/init.d/xvfb start
|
|
before_script:
|
|
- mkdir bin
|
|
- curl -O https://chromedriver.storage.googleapis.com/2.27/chromedriver_linux64.zip
|
|
- unzip chromedriver_linux64.zip -d bin
|
|
- curl -Lo geckodriver.tar.gz "https://github.com/mozilla/geckodriver/releases/download/${GECKO_DRIVER_VERSION}/geckodriver-${GECKO_DRIVER_VERSION}-linux64.tar.gz"
|
|
- tar xzf geckodriver.tar.gz -C bin
|
|
- PATH=$PATH:$PWD/bin
|
|
script:
|
|
- |
|
|
if [[ -z $DJANGO ]]; then
|
|
tox -e $TOXENV
|
|
else
|
|
tox -e py$(echo $TRAVIS_PYTHON_VERSION | sed -e 's/\.//g')-dj$DJANGO
|
|
fi
|
|
after_success:
|
|
- coveralls
|
|
deploy:
|
|
provider: pypi
|
|
user: codingjoe
|
|
password:
|
|
secure: fEP9K7y0ZF9fRvQEUN4kgPXQEZvi3Cx3ikUebG2UM/2uhcaUQm0+KpgZ2S+lvOTYcBnNgzPzFsVIZMcVcTxwIKuQDEMq9y2eop2hnisb9KXsIm9qPYSzOnRm74VuiOt4hNOZMe0qVBK2cO3vC9NDXuzdI8A0JynJhthfl4t+kFM=
|
|
on:
|
|
tags: true
|
|
distributions: sdist bdist_wheel
|
|
repo: applegrew/django-select2
|