2014-12-24 01:39:38 +01:00
|
|
|
sudo: false
|
2015-08-27 02:57:09 +02:00
|
|
|
language: python
|
2015-06-08 13:39:05 +02:00
|
|
|
|
2016-02-15 17:06:32 +01:00
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
# Debian sid currently holds OpenSSL 1.0.2
|
|
|
|
# change this with future releases!
|
|
|
|
- debian-sid
|
|
|
|
packages:
|
|
|
|
- libssl-dev
|
|
|
|
|
2015-06-08 13:39:05 +02:00
|
|
|
matrix:
|
2015-08-27 02:57:09 +02:00
|
|
|
fast_finish: true
|
2015-06-08 13:39:05 +02:00
|
|
|
include:
|
2015-08-27 02:57:09 +02:00
|
|
|
- python: 2.7
|
2015-06-08 13:39:05 +02:00
|
|
|
- python: 2.7
|
2016-02-15 17:06:32 +01:00
|
|
|
env: NO_ALPN=1
|
2016-01-30 22:05:37 +01:00
|
|
|
- language: generic
|
|
|
|
os: osx
|
|
|
|
osx_image: xcode7.1
|
2016-02-15 17:06:32 +01:00
|
|
|
- python: 3.5
|
2016-03-19 19:53:27 +01:00
|
|
|
env: SCOPE="netlib ./test/mitmproxy/script"
|
2016-02-15 17:06:32 +01:00
|
|
|
- python: 3.5
|
2016-03-19 19:53:27 +01:00
|
|
|
env: SCOPE="netlib ./test/mitmproxy/script" NO_ALPN=1
|
2016-01-30 22:05:37 +01:00
|
|
|
- python: 2.7
|
|
|
|
env: DOCS=1
|
2016-02-18 09:19:05 +13:00
|
|
|
script: 'cd docs && make html'
|
2016-02-04 03:19:39 +01:00
|
|
|
allow_failures:
|
|
|
|
- python: pypy
|
2015-06-08 13:39:05 +02:00
|
|
|
|
2014-09-09 00:15:06 +02:00
|
|
|
install:
|
2015-11-26 14:59:43 +01:00
|
|
|
- |
|
|
|
|
if [[ $TRAVIS_OS_NAME == "osx" ]]
|
|
|
|
then
|
2015-11-29 15:11:08 +01:00
|
|
|
brew update || brew update # try again if it fails
|
|
|
|
brew outdated openssl || brew upgrade openssl
|
|
|
|
brew install python
|
2015-11-26 14:59:43 +01:00
|
|
|
fi
|
2016-02-24 10:40:34 +01:00
|
|
|
- pip install -U virtualenv
|
|
|
|
- ./dev.sh
|
|
|
|
- source ./venv/bin/activate
|
2015-06-08 13:39:05 +02:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- "openssl version -a"
|
2016-02-24 10:40:34 +01:00
|
|
|
- "python -c \"from OpenSSL import SSL; print(SSL.SSLeay_version(SSL.SSLEAY_VERSION))\""
|
2015-06-08 13:39:05 +02:00
|
|
|
|
|
|
|
script:
|
2016-03-20 19:39:02 +01:00
|
|
|
- "py.test --cov netlib --cov mitmproxy --cov pathod ./test/$SCOPE"
|
2015-06-08 13:39:05 +02:00
|
|
|
|
|
|
|
after_success:
|
2014-01-22 13:33:02 +13:00
|
|
|
- coveralls
|
2015-11-29 15:11:08 +01:00
|
|
|
- |
|
2015-11-29 15:23:44 +01:00
|
|
|
if [[ $TRAVIS_OS_NAME == "osx" && $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]
|
2015-11-29 15:11:08 +01:00
|
|
|
then
|
2016-02-15 17:06:32 +01:00
|
|
|
pip install -e ./release
|
|
|
|
python ./release/rtool.py bdist
|
2016-02-16 02:04:58 +01:00
|
|
|
python ./release/rtool.py upload-snapshot --bdist --wheel
|
2015-11-29 15:11:08 +01:00
|
|
|
fi
|
2015-06-08 13:39:05 +02:00
|
|
|
|
2014-01-28 14:52:41 +13:00
|
|
|
notifications:
|
|
|
|
irc:
|
|
|
|
channels:
|
|
|
|
- "irc.oftc.net#mitmproxy"
|
|
|
|
on_success: change
|
|
|
|
on_failure: always
|
2015-06-23 14:01:31 +12:00
|
|
|
slack:
|
|
|
|
rooms:
|
2016-02-02 19:28:01 +01:00
|
|
|
- mitmproxy:YaDGC9Gt9TEM7o8zkC2OLNsu#ci
|
|
|
|
on_success: always
|
2015-06-23 14:01:31 +12:00
|
|
|
on_failure: always
|
2015-06-08 13:39:05 +02:00
|
|
|
|
2014-12-24 01:56:46 +01:00
|
|
|
cache:
|
|
|
|
directories:
|
2015-08-27 02:57:09 +02:00
|
|
|
- $HOME/.cache/pip
|
2016-01-27 10:57:07 +01:00
|
|
|
- $HOME/.pyenv
|
2016-02-16 21:31:19 +01:00
|
|
|
- $HOME/Library/Caches/pip
|