bidict/.travis.yml

76 lines
2.0 KiB
YAML
Raw Normal View History

2014-09-23 14:08:21 +00:00
language: python
2016-06-28 04:05:22 +00:00
env:
global:
- PYENV_ROOT="$HOME/.pyenv"
- PYENV="$PYENV_ROOT/bin/pyenv"
- BENCHMARK_DIR="$HOME/.benchmarks"
matrix:
include:
- python: "2.7"
env:
2016-06-29 22:57:52 +00:00
- PYENV_PYTHON_VER=2.7.12
2016-06-28 04:05:22 +00:00
- BIDICT_SPHINXBUILD_DISABLE=1
- python: "3.4"
env:
2016-06-29 22:57:52 +00:00
- PYENV_PYTHON_VER=3.4.5
2016-06-28 04:05:22 +00:00
- BIDICT_COVERAGE_DISABLE=1
- python: "3.5"
env:
2016-06-29 22:57:52 +00:00
- PYENV_PYTHON_VER=3.5.2
2016-06-28 04:05:22 +00:00
- BIDICT_SPHINXBUILD_DISABLE=1
- python: "pypy"
env:
2016-11-21 06:27:25 +00:00
- PYENV_PYTHON_VER=pypy-portable-5.6.0
2016-06-28 04:05:22 +00:00
- BIDICT_COVERAGE_DISABLE=1
- BIDICT_SPHINXBUILD_DISABLE=1
2014-09-23 14:08:21 +00:00
install:
# based on https://github.com/frol/flask-restplus-server-example/blob/018f48e5/.travis.yml
- |
2016-06-28 04:05:22 +00:00
if [ -f "$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
2016-06-28 04:05:22 +00:00
"$PYENV" install --skip-existing "$PYENV_PYTHON_VER"
export PYTHON="$PYENV_ROOT/versions/$PYENV_PYTHON_VER/bin/python"
export VENV="$HOME/virtualenvs/$PYENV_PYTHON_VER"
virtualenv --python="$PYTHON" "$VENV"
source "$VENV/bin/activate"
- travis_retry pip install -e .[test]
2016-06-28 04:05:22 +00:00
- test -n "$BIDICT_COVERAGE_DISABLE" && echo "Skipping coveralls install" || travis_retry pip install coveralls
2014-09-23 14:08:21 +00:00
script:
- ./test.sh
cache:
directories:
- $HOME/.cache/pip
2016-06-28 04:05:22 +00:00
- $HOME/.hypothesis
- $PYENV_ROOT
- $BENCHMARK_DIR
before_cache:
- rm -rf $HOME/.cache/pip/log
after_success:
2016-06-28 04:05:22 +00:00
- test -n "$BIDICT_COVERAGE_DISABLE" && echo "Skipping coveralls" || coveralls
sudo: false
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/bf64fb45a633c0935b9b
deploy:
provider: pypi
user: jab
password:
secure: B9LLgXkTbtjeC/IbH4wh9PEBzvKEAuYo3EBNW5f1xuLqVqtsysIyxJa5ar/FQ4qwUCBwZPFAXFurN3lLzRhb2Tc04YQ0GYVv6f8lkzwrjoWau4iB9Qt/nnvdRa7KryEJvtenHCAnwoEUaADCjkZjwo6fIA0hEOLB6/AYfhfgXYA=
on:
tags: true
branch: master