mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 02:10:59 +00:00
update CI integration
This commit is contained in:
parent
8d14dd33d0
commit
ef7b4f56af
@ -1,16 +1,19 @@
|
||||
version: '{build}'
|
||||
shallow_clone: true
|
||||
build: off # Not a C# project
|
||||
environment:
|
||||
matrix:
|
||||
- PYTHON: "C:\\Python27"
|
||||
PATH: "C:\\Python27;C:\\Python27\\Scripts;%PATH%"
|
||||
PATH: "%APPDATA%\\Python\\Scripts;C:\\Python27;C:\\Python27\\Scripts;%PATH%"
|
||||
PYINSTALLER_VERSION: "git+https://github.com/pyinstaller/pyinstaller.git"
|
||||
install:
|
||||
- "pip install --src .. -r requirements.txt"
|
||||
- "pip install --user -U pip setuptools"
|
||||
- "pip install --user --src .. -r requirements.txt"
|
||||
- "python -c \"from OpenSSL import SSL; print(SSL.SSLeay_version(SSL.SSLEAY_VERSION))\""
|
||||
build: off # Not a C# project
|
||||
test_script:
|
||||
- "py.test -n 4"
|
||||
- "py.test -s --cov libmproxy"
|
||||
cache:
|
||||
- C:\Users\appveyor\AppData\Local\pip\cache
|
||||
after_test:
|
||||
- |
|
||||
git clone https://github.com/mitmproxy/release.git ..\release
|
||||
|
22
.travis.yml
22
.travis.yml
@ -45,6 +45,19 @@ install:
|
||||
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"
|
||||
- "pip install --src .. -r requirements.txt"
|
||||
|
||||
@ -90,7 +103,8 @@ before_cache:
|
||||
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
|
||||
- $HOME/virtualenv/python2.7.9/lib/python2.7/site-packages
|
||||
- $HOME/virtualenv/python2.7.9/bin
|
||||
- $HOME/.pyenv
|
||||
- $HOME/virtualenv/pypy-2.5.0/site-packages
|
||||
- $HOME/virtualenv/pypy-2.5.0/bin
|
||||
|
Loading…
Reference in New Issue
Block a user