97 lines
2.5 KiB
YAML
Raw Normal View History

2014-12-24 01:39:38 +01:00
sudo: false
2015-08-27 02:57:09 +02:00
language: python
matrix:
2015-08-27 02:57:09 +02:00
fast_finish: true
include:
2015-08-27 02:57:09 +02:00
- python: 2.7
- 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-08-27 02:57:09 +02: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
2016-01-30 22:05:37 +01:00
- language: generic
os: osx
osx_image: xcode7.1
- python: 2.7
env: DOCS=1
script: 'cd docs && make html'
allow_failures:
- python: pypy
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-01-27 10:57:07 +01:00
- |
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
2016-01-11 15:40:09 +01:00
- "pip install -U pip setuptools"
2016-02-15 15:43:59 +01:00
- "pip install -e ./netlib[dev]"
- "pip install -e ./pathod[dev]"
- "pip install -e ./mitmproxy[dev,contentviews,examples]"
before_script:
- "openssl version -a"
script:
2016-02-01 23:10:40 +01:00
- "py.test -s --cov libmproxy --timeout 30"
after_success:
- 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-14 12:53:46 +01:00
git clone -q https://github.com/mitmproxy/release.git ../release
2015-11-29 15:11:08 +01:00
pip install -e ../release
2016-02-12 21:42:02 +01:00
python ../release/rtool.py bdist
python ../release/rtool.py upload-snapshot --sdist --bdist --wheel
2015-11-29 15:11:08 +01:00
fi
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:
- mitmproxy:YaDGC9Gt9TEM7o8zkC2OLNsu#ci
on_success: always
2015-06-23 14:01:31 +12:00
on_failure: always
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
- $HOME/Library/Caches/pip