mitmproxy/.travis.yml

91 lines
2.4 KiB
YAML
Raw Normal View History

2015-02-07 00:43:25 +00:00
sudo: false
2015-08-29 18:57:51 +00:00
language: python
2015-06-08 09:29:01 +00:00
matrix:
2015-08-29 18:57:51 +00:00
fast_finish: true
2015-06-08 09:29:01 +00:00
include:
2015-08-29 18:57:51 +00:00
- python: 2.7
2015-06-08 09:29:01 +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-15 22:09:43 +00:00
- python: 3.5
2015-09-17 14:31:50 +00:00
script:
2016-01-30 11:48:09 +00:00
- py.test -s --cov netlib -k "not http2"
2015-08-29 18:57:51 +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
2015-06-08 09:29:01 +00:00
2015-02-07 00:43:25 +00:00
install:
2016-01-30 11:48:09 +00:00
- |
if [[ $TRAVIS_OS_NAME == "osx" ]]
then
brew update || brew update # try again if it fails
brew outdated openssl || brew upgrade openssl
brew install python
fi
- |
if [ "$TRAVIS_PYTHON_VERSION" = "pypy" ]; then
export PYENV_ROOT="$HOME/.pyenv"
if [ -f "$PYENV_ROOT/bin/pyenv" ]; then
pushd "$PYENV_ROOT" && git pull && popd
else
rm -rf "$PYENV_ROOT" && git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
fi
export PYPY_VERSION="4.0.1"
"$PYENV_ROOT/bin/pyenv" install --skip-existing "pypy-$PYPY_VERSION"
virtualenv --python="$PYENV_ROOT/versions/pypy-$PYPY_VERSION/bin/python" "$HOME/virtualenvs/pypy-$PYPY_VERSION"
source "$HOME/virtualenvs/pypy-$PYPY_VERSION/bin/activate"
fi
- "pip install -U pip setuptools"
2015-02-07 00:43:25 +00:00
- "pip install --src . -r requirements.txt"
2015-06-08 09:29:01 +00:00
before_script:
- "openssl version -a"
2015-05-27 09:34:14 +00:00
script:
2016-01-30 11:48:09 +00:00
- "py.test -s --cov netlib"
2015-06-08 09:29:01 +00:00
2015-05-27 09:34:14 +00:00
after_success:
- coveralls
2015-06-08 09:29:01 +00:00
2014-01-28 02:13:31 +00:00
notifications:
irc:
channels:
- "irc.oftc.net#mitmproxy"
on_success: change
on_failure: always
slack:
2015-06-23 01:51:08 +00:00
rooms:
- mitmproxy:YaDGC9Gt9TEM7o8zkC2OLNsu
2015-08-29 18:57:51 +00:00
on_success: change
on_failure: always
2015-06-08 09:29:01 +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
2015-02-07 00:43:25 +00:00
cache:
directories:
2015-08-29 18:57:51 +00:00
- $HOME/.cache/pip
2015-06-08 09:29:01 +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
2015-09-15 22:09:43 +00:00
- /home/travis/virtualenv/pypy-2.5.0/bin