dist: xenial
language: python
python: 3.7
services:
- docker
branches:
only:
- master
stages:
- lint
- test
matrix:
include:
- name: lint
stage: lint
script:
- >
docker run --rm -v $(pwd):/source -w /source python bash -c "
pip install flake8;
flake8 aioftp tests"
- name: cpython 3.7
stage: test
before_install:
- echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
- sudo systemctl restart docker
install:
- pip install codecov
script:
- >
docker run --rm -v $(pwd):/source -w /source python:3.7 bash -c "
pip install -e ./[tests];
pytest;
rm -rf build/ *.egg-info"
after_success:
- codecov
- name: cpython 3.8
stage: test
before_install:
- echo '{"ipv6":true,"fixed-cidr-v6":"2001:db8:1::/64"}' | sudo tee /etc/docker/daemon.json
- sudo systemctl restart docker
install:
- pip install codecov
script:
- >
docker run --rm -v $(pwd):/source -w /source python:3.8 bash -c "
pip install -e ./[tests];
pytest;
rm -rf build/ *.egg-info"
after_success:
- codecov
deploy:
provider: pypi
user: __token__
password:
secure: "k2+VW3e+JiFq1KaH1kKPb9n4sM790JIFYxwzmLUIq9nRI35A7FkinWmIa+lz3QHfGOi4HjNqKJospDY1vez0oXKQpeb4QdhTw8FRs+9b+X1Yff48hkA/GEiXiVCiJ6KS26qnUFEqU6xGdjamrdZ8G0e43Ezo/9a03X+Zi2/GIb+g2fWw5c41i87lb0f4APKmL7nfMGkIqHzOBdpPV6UYxIuOAlc1UCpiSoY94PTw8+w+XJKDD2h6+g3okCXXR6Z+iX6NvnGjbIBZ3L574tn8+XvlyhduWuiuArmmWQj5kiG0JH+KYRU/NhdF0vCGib1EfP1UZLsrZ3T1n0YhCHGcUKEFC98pERZdD7i3vkipKHFxaPbu7IBALsCtS/NuzBWk6JSp7uvV1DPX/98gZz3XOrMMbu5sI12LfiwStPhyKFec4NNrbR+DY/wRMvhY2dMXNQK1Jn5/452DqbrAqM5gJH9ifR2QLrwYSdyzzCNZzH/tTuxXrStk3F8oLIU4GOSI0sGtRADgBHZgASXlLg/2Wjhy5K2jb3lgXIBjzA3y2SVomcehVXQ3MyYEEHH7789j5AdwuTaK1uagpeVABDaPqmPvksFphFOPpQLQkS7ROooeRMut8NfqQUYTmek9xHQ2Tx6x/KuEI2W0AKZWpQ9SoXpKw0as+yVdnvXqWuNgv0s="
distributions: sdist bdist_wheel
skip_existing: true
skip_cleanup: true
on:
branch: master