53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
sudo: false
|
|
language: python
|
|
python:
|
|
- 3.6
|
|
- 3.5
|
|
- 2.7
|
|
cache: pip
|
|
env:
|
|
global:
|
|
- PYTHONWARNINGS=default,ignore::PendingDeprecationWarning,ignore::ResourceWarning
|
|
matrix:
|
|
- DJANGO='>=2.0,<2.1'
|
|
- DJANGO='>=1.11,<1.12'
|
|
- DJANGO='>=1.10,<1.11'
|
|
- DJANGO='>=1.9,<1.10'
|
|
- DJANGO='>=1.8,<1.9'
|
|
matrix:
|
|
fast_finish: true
|
|
exclude:
|
|
- python: 2.7
|
|
env: DJANGO='>=2.0,<2.1'
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libmysqlclient-dev
|
|
services:
|
|
- postgresql
|
|
- mysql
|
|
install:
|
|
- pip install flake8 coverage django$DJANGO psycopg2 mysqlclient -e .
|
|
before_script:
|
|
- mysql -e 'create database test_project'
|
|
- psql -c 'create database test_project;' -U postgres;
|
|
script:
|
|
- flake8
|
|
- coverage run -a tests/runtests.py
|
|
- coverage run -a tests/runtests.py -d psql
|
|
- coverage run -a tests/runtests.py -d mysql
|
|
after_success:
|
|
- coverage report
|
|
deploy:
|
|
provider: pypi
|
|
user: etianen
|
|
password:
|
|
secure: rzaq3pbJz25SVXyR/fn+gLaYxu0LqCEE+wcesg8pjA8cLLvFdLvXi0ZjmixxVl2u4HlndZrUgwTrRGVIQR1TOL0jGRYOUCJDzAaZqJkg+Qykz89iKSnentyOpNJe6fRAHsqFxBESYZjG8JEZvtRv+JIZLY+QR+KCA1xaeu4Afpw=
|
|
on:
|
|
tags: true
|
|
condition: $DJANGO = '>=2.0,<2.1'
|
|
python: 3.6
|
|
repo: etianen/django-watson
|
|
notifications:
|
|
email: false
|