-
Notifications
You must be signed in to change notification settings - Fork 56
/
.travis.yml
53 lines (45 loc) · 1.06 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
language: python
# Use container-based infrastructure
sudo: false
matrix:
include:
- env: TOX_ENV=py27-cryptography
python: 2.7
- env: TOX_ENV=py27-pycrypto
python: 2.7
- env: TOX_ENV=py34-cryptography
python: 3.4
- env: TOX_ENV=py34-pycrypto
python: 3.4
- env: TOX_ENV=py35-cryptography
python: 3.5
- env: TOX_ENV=py35-pycrypto
python: 3.5
- env: TOX_ENV=py36-cryptography
python: 3.6
- env: TOX_ENV=py36-pycrypto
python: 3.6
- env: TOX_ENV=pypy-cryptography
python: "pypy"
- env: TOX_ENV=pypy3-cryptography
python: "pypy3"
services:
- redis-server
- memcached
cache:
directories:
- $HOME/.cache/pip
install:
- pip install tox
- pip install "flake8>=3.7"
before_script:
- "flake8 ."
script:
tox -e $TOX_ENV
after_success:
- |
if [[ "${TRAVIS_TAG:-}" != "" && "$TOX_ENV" == "py36-cryptography" ]]; then
python3.6 setup.py sdist bdist_wheel;
python3.6 -m pip install twine;
python3.6 -m twine upload --skip-existing dist/*;
fi