2014-12-24 00:39:38 +00:00
|
|
|
sudo: false
|
2015-08-27 00:57:09 +00:00
|
|
|
language: python
|
2015-06-08 11:39:05 +00:00
|
|
|
|
|
|
|
matrix:
|
2015-08-27 00:57:09 +00:00
|
|
|
fast_finish: true
|
2015-06-08 11:39:05 +00:00
|
|
|
include:
|
2015-08-27 00:57:09 +00:00
|
|
|
- python: 2.7
|
2015-06-08 11:39:05 +00:00
|
|
|
- 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
|
2015-09-08 14:07:27 +00:00
|
|
|
- python: 2.7
|
|
|
|
env: DOCS=1
|
2015-08-27 00:57:09 +00:00
|
|
|
- python: pypy
|
|
|
|
- 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
|
|
|
|
allow_failures:
|
|
|
|
# We allow pypy to fail until Travis fixes their infrastructure to a pypy
|
|
|
|
# with a recent enought CFFI library to run cryptography 1.0+.
|
|
|
|
- python: pypy
|
2015-06-08 11:39:05 +00:00
|
|
|
|
2014-09-08 22:15:06 +00:00
|
|
|
install:
|
2015-02-07 00:36:45 +00:00
|
|
|
- "pip install --src . -r requirements.txt"
|
2015-06-08 11:39:05 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- "openssl version -a"
|
|
|
|
|
|
|
|
script:
|
2015-09-08 14:07:27 +00:00
|
|
|
- "if [ -z \"$DOCS\" ]; then nosetests --with-cov --cov-report term-missing; fi"
|
|
|
|
- "if [ -n \"$DOCS\" ]; then cd docs && make html; fi"
|
2015-06-08 11:39:05 +00:00
|
|
|
|
|
|
|
after_success:
|
2014-01-22 00:33:02 +00:00
|
|
|
- coveralls
|
2015-06-08 11:39:05 +00:00
|
|
|
|
2014-01-28 01:52:41 +00:00
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "irc.oftc.net#mitmproxy"
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
2015-06-23 02:01:31 +00:00
|
|
|
slack:
|
|
|
|
rooms:
|
2015-09-08 14:07:27 +00:00
|
|
|
- mitmproxy:YaDGC9Gt9TEM7o8zkC2OLNsu
|
2015-08-27 00:57:09 +00:00
|
|
|
on_success: change
|
2015-06-23 02:01:31 +00:00
|
|
|
on_failure: always
|
2015-06-08 11:39:05 +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
|
|
|
|
|
2014-12-24 00:56:46 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
2015-08-27 00:57:09 +00:00
|
|
|
- $HOME/.cache/pip
|
2015-06-08 11:39:05 +00:00
|
|
|
- /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
|