2013-12-16 02:58:46 +00:00
|
|
|
language: python
|
2015-06-08 11:14:35 +00:00
|
|
|
|
|
|
|
sudo: false
|
|
|
|
|
2013-12-16 02:58:46 +00:00
|
|
|
python:
|
|
|
|
- "2.7"
|
2015-06-08 11:14:35 +00:00
|
|
|
- pypy
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- python: 2.7
|
|
|
|
env: OPENSSL=1.0.2
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
# Debian sid currently holds OpenSSL 1.0.2
|
|
|
|
# change this with future releases!
|
|
|
|
- debian-sid
|
|
|
|
packages:
|
|
|
|
- libssl-dev
|
|
|
|
- python: pypy
|
|
|
|
env: OPENSSL=1.0.2
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
# Debian sid currently holds OpenSSL 1.0.2
|
|
|
|
# change this with future releases!
|
|
|
|
- debian-sid
|
|
|
|
packages:
|
|
|
|
- libssl-dev
|
|
|
|
|
|
|
|
install:
|
|
|
|
- "pip install --src . -r requirements.txt"
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- "openssl version -a"
|
|
|
|
|
|
|
|
script:
|
2013-12-16 02:58:46 +00:00
|
|
|
- "nosetests --with-cov --cov-report term-missing"
|
2015-06-08 11:14:35 +00:00
|
|
|
|
|
|
|
after_success:
|
2014-01-28 02:02:34 +00:00
|
|
|
- coveralls
|
2015-06-08 11:14:35 +00:00
|
|
|
|
2014-01-28 02:02:34 +00:00
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "irc.oftc.net#mitmproxy"
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
|
|
|
|
2015-06-08 11:14:35 +00:00
|
|
|
# exclude cryptography from cache
|
|
|
|
# it depends on libssl-dev version
|
|
|
|
# which needs to be compiled specifically to each version
|
|
|
|
before_cache:
|
|
|
|
- pip uninstall -y cryptography
|
|
|
|
- rm -rf /home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/cryptography/
|
|
|
|
- rm -rf /home/travis/virtualenv/pypy-2.5.0/site-packages/cryptography/
|
|
|
|
- rm /home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py
|
|
|
|
- rm /home/travis/virtualenv/pypy-2.5.0/site-packages/pip/_vendor/requests/packages/urllib3/contrib/pyopenssl.py
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- /home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages
|
|
|
|
- /home/travis/virtualenv/python2.7.9/bin
|
|
|
|
- /home/travis/virtualenv/pypy-2.5.0/site-packages
|
|
|
|
- /home/travis/virtualenv/pypy-2.5.0/bin
|