This repository has been archived by the owner on Sep 12, 2023. It is now read-only.
forked from aio-libs/aioftp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
95 lines (95 loc) · 3.21 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
dist: xenial
language: python
python: 3.7
services:
- docker
branches:
only:
- master
stages:
- lint
- test
- deploy
matrix:
include:
- name: lint
stage: lint
script:
- >
docker run --rm -v $(pwd):/source -w /source python:3.9-slim 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-slim 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-slim bash -c "
pip install -e ./[tests];
pytest;
rm -rf build/ *.egg-info"
after_success:
- codecov
- name: cpython 3.9
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.9-slim bash -c "
pip install -e ./[tests];
pytest;
rm -rf build/ *.egg-info"
after_success:
- codecov
- name: cpython 3.10
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.10-slim bash -c "
pip install -e ./[tests];
pytest;
rm -rf build/ *.egg-info"
after_success:
- codecov
- name: deploy
stage: deploy
script:
- echo "deploy"
deploy:
provider: pypi
username: __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
cleanup: false
on:
branch: master