mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
2f670bac99
We currently test with unparallelized builds, because there are apparently some race conditions in the test suite, which I can't trigger locally but happen on travis. Squashed commit of the following: commit 7dceb6dd3a1bdbc39688258bc4dff6eee685a33b Author: Maximilian Hils <git@maximilianhils.com> Date: Mon Sep 21 23:00:24 2015 +0200 disable parallelized tests commit fc0c3f12ee9259162e83026851362925d93b69f2 Author: Maximilian Hils <git@maximilianhils.com> Date: Mon Sep 21 22:49:19 2015 +0200 fix tests commit baba3ca5ef49bdbd7aad14f1bf0626738fa3d21c Author: Maximilian Hils <git@maximilianhils.com> Date: Mon Sep 21 22:28:20 2015 +0200 fix tests, use py.test
71 lines
1.6 KiB
YAML
71 lines
1.6 KiB
YAML
sudo: false
|
|
language: python
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
include:
|
|
- 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
|
|
- 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
|
|
|
|
install:
|
|
- "pip install --src . -r requirements.txt"
|
|
|
|
before_script:
|
|
- "openssl version -a"
|
|
|
|
script:
|
|
- "py.test --cov pathod -v"
|
|
|
|
after_success:
|
|
- coveralls
|
|
|
|
notifications:
|
|
irc:
|
|
channels:
|
|
- "irc.oftc.net#mitmproxy"
|
|
on_success: change
|
|
on_failure: always
|
|
slack:
|
|
rooms:
|
|
- mitmproxy:YaDGC9Gt9TEM7o8zkC2OLNsu
|
|
on_success: change
|
|
on_failure: always
|
|
|
|
# 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
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.cache/pip
|
|
- /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
|