2014-09-23 14:08:21 +00:00
|
|
|
language: python
|
2016-01-13 16:54:29 +00:00
|
|
|
|
2016-06-28 04:05:22 +00:00
|
|
|
env:
|
|
|
|
global:
|
|
|
|
- PYENV_ROOT="$HOME/.pyenv"
|
|
|
|
- PYENV="$PYENV_ROOT/bin/pyenv"
|
|
|
|
- BENCHMARK_DIR="$HOME/.benchmarks"
|
|
|
|
|
2016-01-13 16:54:29 +00:00
|
|
|
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
|
2016-01-13 16:54:29 +00:00
|
|
|
- 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
|
2016-01-13 16:54:29 +00:00
|
|
|
- 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
|
2016-01-13 16:54:29 +00:00
|
|
|
- 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:
|
2016-01-13 16:54:29 +00:00
|
|
|
# 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
|
2016-01-13 16:54:29 +00:00
|
|
|
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"
|
2016-01-13 16:54:29 +00:00
|
|
|
- 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
|
|
|
|
2015-03-22 18:21:15 +00:00
|
|
|
script:
|
2016-01-13 16:54:29 +00:00
|
|
|
- ./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
|
2015-03-22 18:21:15 +00:00
|
|
|
|
|
|
|
after_success:
|
2016-06-28 04:05:22 +00:00
|
|
|
- test -n "$BIDICT_COVERAGE_DISABLE" && echo "Skipping coveralls" || coveralls
|
2014-12-17 23:47:48 +00:00
|
|
|
|
|
|
|
sudo: false
|
2015-03-22 18:21:15 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
webhooks:
|
|
|
|
urls:
|
|
|
|
- https://webhooks.gitter.im/e/bf64fb45a633c0935b9b
|
2015-12-21 03:42:17 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: pypi
|
|
|
|
user: jab
|
|
|
|
password:
|
|
|
|
secure: B9LLgXkTbtjeC/IbH4wh9PEBzvKEAuYo3EBNW5f1xuLqVqtsysIyxJa5ar/FQ4qwUCBwZPFAXFurN3lLzRhb2Tc04YQ0GYVv6f8lkzwrjoWau4iB9Qt/nnvdRa7KryEJvtenHCAnwoEUaADCjkZjwo6fIA0hEOLB6/AYfhfgXYA=
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
branch: master
|