daphne/.travis.yml

58 lines
1.6 KiB
YAML
Raw Normal View History

2016-02-06 04:25:37 +03:00
sudo: false
2016-02-06 04:25:37 +03:00
language: python
2016-02-06 04:25:37 +03:00
python:
2018-02-03 23:31:12 +03:00
- '3.6'
2018-08-27 05:27:32 +03:00
- '3.5'
2017-11-29 04:59:59 +03:00
env:
2018-02-03 23:31:12 +03:00
- TWISTED="twisted"
2018-08-27 05:27:32 +03:00
- TWISTED="twisted==18.7.0"
2017-11-29 04:59:59 +03:00
install:
2018-08-27 05:27:32 +03:00
- pip install $TWISTED -e .[tests]
2018-02-03 23:31:12 +03:00
- pip freeze
2017-11-29 04:59:59 +03:00
script:
2018-02-03 23:31:12 +03:00
- pytest
2018-08-27 05:27:32 +03:00
stages:
- lint
- test
- name: release
2018-08-30 03:57:06 +03:00
if: tag IS present
2018-02-04 09:56:24 +03:00
jobs:
include:
2018-08-25 02:46:04 +03:00
- python: '3.7'
env: TWISTED="twisted==18.7.0"
dist: xenial
sudo: required
- python: '3.7'
env: TWISTED="twisted"
dist: xenial
sudo: required
2019-11-20 22:13:51 +03:00
- python: '3.8'
env: TWISTED="twisted"
dist: xenial
sudo: required
2018-08-27 07:21:40 +03:00
2018-08-27 05:27:32 +03:00
- stage: lint
install: pip install -U -e .[tests] black pyflakes isort
script:
- pyflakes daphne tests
- black --check daphne tests
2018-08-27 05:40:51 +03:00
- isort --check-only --diff --recursive daphne tests
2018-08-27 05:27:32 +03:00
2018-02-04 23:09:26 +03:00
- stage: release
2018-02-04 09:56:24 +03:00
script: skip
deploy:
provider: pypi
user: andrewgodwin_bot
on:
tags: true
distributions: sdist bdist_wheel
password:
secure: IA+dvSmMKN+fT47rgRb6zdmrExhK5QCVEDH8kheC6kAacw80ORBZKo6sMX9GQBJ3BlfhTqrzAhItHkDUxonb579rJDvmlJ7FPg7axZpsY9Fmls6q1rJC/La8iGWx20+ctberejKSH3wSwa0LH0imJXGDoKKzf1DLmk5pEEWjG2QqhKdEtyAcnzOPnDWcRCs+DKfQcMzETH7lMFN8oe3aBhHLLtcg4yA78cN5CeyyH92lmbaVp7k/b1FqXXFgf16bi5tlgLrb6DhmcnNjwLMSHRafNoPCXkWQOwh6gEHeHRR3OsHsBueyJHIikuHNrpmgpAqjYlVQ5WqmfgMlhCfRm9xL+G4G+KK9n8AJNGAszUfxVlPvMTw+nkOSd/bmxKrdCqqYnDIvDLucXJ86TstNzklfAwr3FL+wBlucRtOMLhQlHIaPTXYcNpOuh6B4ELjC+WjDGh8EdRKvcsZz7+5AS5ZaDDccuviMzQFsXVcE2d4HiosbARVrkxJ7j3MWp0OGgWVxXgRO2EQIksbgGSIjI8PqFjBqht2WT6MhVZPCc9XHUlP2CiAR5+QY8JgTIztbEDuhpgr0cRAtiHwJEAxDR9tJR/j/v4X/Pau2ZdR0C0yW77lVgD75spLL0khAnU7q+qgiF0hyQ7gRRVy0tElT0HBenVbzjzHowdJX8lSPjRg=