-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
81 lines (74 loc) · 2.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
language: python
sudo: false
python:
- 2.7
- 3.8
- 3.9
- 3.10
- 3.11
- 3.12
env:
- >
INSTALL_ETCD=2.1.1
EXTRA_ETCD="[etcd]"
_SSL="`pwd`/test/ssl"
ETCD_TRUSTED_CA_FILE="${_SSL}/cacert.pem"
ETCD_CERT_FILE="${_SSL}/server.crt"
ETCD_KEY_FILE="${_SSL}/server.key"
ETCD_ADVERTISE_CLIENT_URLS="https://127.0.0.1:2379"
ETCD_LISTEN_CLIENT_URLS="https://127.0.0.1:2379"
PYCONFIG_ETCD_HOSTS="127.0.0.1:2379"
PYCONFIG_ETCD_CACERT="${_SSL}/cacert.pem"
PYOPENSSL=""
- >
INSTALL_ETCD=2.1.1
EXTRA_ETCD="[etcd]"
_SSL="`pwd`/test/ssl"
ETCD_CLIENT_CERT_AUTH=1
ETCD_TRUSTED_CA_FILE="${_SSL}/cacert.pem"
ETCD_CERT_FILE="${_SSL}/server.crt"
ETCD_KEY_FILE="${_SSL}/server.key"
ETCD_ADVERTISE_CLIENT_URLS="https://127.0.0.1:2379"
ETCD_LISTEN_CLIENT_URLS="https://127.0.0.1:2379"
PYCONFIG_ETCD_HOSTS="127.0.0.1:2379"
PYCONFIG_ETCD_CACERT="${_SSL}/cacert.pem"
PYCONFIG_ETCD_CERT="${_SSL}/client.crt"
PYCONFIG_ETCD_KEY="${_SSL}/client.key"
PYOPENSSL=""
- >
INSTALL_ETCD=2.1.1
EXTRA_ETCD="[etcd]"
_SSL="`pwd`/test/ssl"
ETCD_CLIENT_CERT_AUTH=1
ETCD_TRUSTED_CA_FILE="${_SSL}/cacert.pem"
ETCD_CERT_FILE="${_SSL}/server.crt"
ETCD_KEY_FILE="${_SSL}/server.key"
ETCD_ADVERTISE_CLIENT_URLS="https://127.0.0.1:2379"
ETCD_LISTEN_CLIENT_URLS="https://127.0.0.1:2379"
PYCONFIG_ETCD_HOSTS="127.0.0.1:2379"
PYCONFIG_ETCD_CACERT="${_SSL}/cacert.pem"
PYCONFIG_ETCD_CERT="${_SSL}/client.crt"
PYCONFIG_ETCD_KEY="${_SSL}/client.key"
PYOPENSSL="pyopenssl"
- >
INSTALL_ETCD=2.1.1
EXTRA_ETCD="[etcd]"
PYCONFIG_ETCD_HOSTS="127.0.0.1:2379"
PYOPENSSL=""
- >
INSTALL_ETCD=2.1.1
EXTRA_ETCD=""
PYOPENSSL=""
install: pip install -e .${EXTRA_ETCD} ${PYOPENSSL}
script:
- coverage run --source=pyconfig setup.py test
before_script:
- curl -L https://github.com/coreos/etcd/releases/download/v${INSTALL_ETCD}/etcd-v${INSTALL_ETCD}-linux-amd64.tar.gz -o etcd-v${INSTALL_ETCD}-linux-amd64.tar.gz
- tar xzvf etcd-v${INSTALL_ETCD}-linux-amd64.tar.gz
- cd etcd-v${INSTALL_ETCD}-linux-amd64
- ./etcd --version
- ./etcd &
- cd -
- pip install nose mock coverage coveralls
after_success:
- coveralls