2017-11-16 20:44:51 +00:00
|
|
|
language: generic
|
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"
|
|
|
|
|
2016-01-13 16:54:29 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
2017-11-16 20:44:51 +00:00
|
|
|
# One-off jobs. Override "script" to do something other than run pytest.
|
|
|
|
# Use latest CPython 3 for these. Set a "TASK" var so the task is evident in the build matrix.
|
|
|
|
- script: ./build-docs.sh linkcheck
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
env:
|
2017-11-16 20:44:51 +00:00
|
|
|
- TASK=build-docs
|
|
|
|
- PYENV_PYTHON_VER=3.6.3
|
|
|
|
- script: pylint bidict tests/*.py
|
2016-01-13 16:54:29 +00:00
|
|
|
env:
|
2017-11-16 20:44:51 +00:00
|
|
|
- TASK=pylint
|
|
|
|
- PYENV_PYTHON_VER=3.6.3
|
|
|
|
- script: flake8 bidict tests/*.py
|
2016-01-13 16:54:29 +00:00
|
|
|
env:
|
2017-11-16 20:44:51 +00:00
|
|
|
- TASK=flake8
|
2017-10-11 14:26:20 +00:00
|
|
|
- PYENV_PYTHON_VER=3.6.3
|
2017-11-16 20:44:51 +00:00
|
|
|
- script: pydocstyle bidict
|
2017-06-12 15:24:22 +00:00
|
|
|
env:
|
2017-11-16 20:44:51 +00:00
|
|
|
- TASK=pydocstyle
|
|
|
|
- PYENV_PYTHON_VER=3.6.3
|
|
|
|
|
|
|
|
# Test all supported Python versions on macOS...
|
|
|
|
- os: osx
|
|
|
|
env: PYENV_PYTHON_VER=2.7.14
|
|
|
|
- os: osx
|
|
|
|
env: PYENV_PYTHON_VER=3.4.7
|
|
|
|
- os: osx
|
|
|
|
env: PYENV_PYTHON_VER=3.5.3
|
|
|
|
- os: osx
|
|
|
|
env: PYENV_PYTHON_VER=3.6.3
|
|
|
|
- os: osx
|
|
|
|
env: PYENV_PYTHON_VER=3.7-dev
|
|
|
|
- os: osx
|
|
|
|
env: PYENV_PYTHON_VER=pypy2.7-5.9.0
|
|
|
|
# not yet working on macOS? works on linux:
|
|
|
|
#- os: osx
|
|
|
|
#- env: PYENV_PYTHON_VER=pypy3.5-5.9.0
|
|
|
|
|
|
|
|
# ...and Linux.
|
|
|
|
- env: PYENV_PYTHON_VER=2.7.14
|
|
|
|
- env: PYENV_PYTHON_VER=3.4.7
|
|
|
|
- env: PYENV_PYTHON_VER=3.5.3
|
|
|
|
# Enable coverage just for the latest stable Python 3 version on Linux.
|
|
|
|
- env: PYENV_PYTHON_VER=3.6.3
|
|
|
|
script:
|
|
|
|
- py.test --cov=bidict --cov-config=.coveragerc
|
|
|
|
- travis_retry pip install coveralls && coveralls
|
|
|
|
- env: PYENV_PYTHON_VER=3.7-dev
|
|
|
|
- env: PYENV_PYTHON_VER=pypy2.7-5.9.0
|
|
|
|
- env: PYENV_PYTHON_VER=pypy3.5-5.9.0
|
|
|
|
|
|
|
|
before_install:
|
|
|
|
- |
|
|
|
|
git --no-pager log -n2
|
|
|
|
echo "TRAVIS_PULL_REQUEST_SHA: $TRAVIS_PULL_REQUEST_SHA"
|
|
|
|
echo "TRAVIS_COMMIT: $TRAVIS_COMMIT"
|
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
|
|
|
|
- |
|
2017-11-16 20:44:51 +00:00
|
|
|
set -e
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
if [[ -n "$PYENV_PYTHON_VER" ]]; then
|
|
|
|
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
|
|
|
|
"$PYENV" install --skip-existing "$PYENV_PYTHON_VER"
|
|
|
|
export PYTHON="$PYENV_ROOT/versions/$PYENV_PYTHON_VER/bin/python"
|
2017-03-25 21:42:59 +00:00
|
|
|
$PYTHON -m ensurepip --upgrade
|
|
|
|
$PYTHON -m pip install --upgrade virtualenv
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
export VENV="$HOME/virtualenvs/$PYENV_PYTHON_VER"
|
2017-03-25 21:42:59 +00:00
|
|
|
$PYTHON -m virtualenv --python="$PYTHON" "$VENV"
|
squashed changes for 0.13.0
- support Python 3.6, refactor CI/test setup, increase test coverage
- refactor BidirectionalMapping, BidictBase, OrderedBidictBase,
FrozenBidictBase, and subclasses
- move frozenorderedbidict into _frozen and looseorderedbidict into _loose
- register bidict as a virtual subclass of MutableMapping rather than
inheriting from it directly. This makes it clearer that it does not use any
of the concrete generic methods that MutableMapping provides.
- improve performance and flexibility of frozenbidict and
frozenorderedbidict hashing
- docs, including new type-hierarchy.png diagram
- rm unused imap, ifilter, izip_longest from compat, add PYPY
- update to latest versions of dependencies
- restore benchmarking on travis
2017-01-09 15:37:31 +00:00
|
|
|
source "$VENV/bin/activate"
|
2016-01-13 16:54:29 +00:00
|
|
|
fi
|
2017-11-16 20:44:51 +00:00
|
|
|
travis_retry pip install -e .[test]
|
2014-09-23 14:08:21 +00:00
|
|
|
|
2015-03-22 18:21:15 +00:00
|
|
|
script:
|
2017-11-16 20:44:51 +00:00
|
|
|
- py.test
|
|
|
|
|
|
|
|
before_cache:
|
|
|
|
- rm -rf $HOME/.cache/pip/log
|
2016-01-13 16:54:29 +00:00
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/pip
|
2016-06-28 04:05:22 +00:00
|
|
|
- $HOME/.hypothesis
|
|
|
|
- $PYENV_ROOT
|
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
|
2017-11-16 20:44:51 +00:00
|
|
|
email:
|
|
|
|
recipients: jab@math.brown.edu
|
2015-12-21 03:42:17 +00:00
|
|
|
|
|
|
|
deploy:
|
2017-11-16 20:44:51 +00:00
|
|
|
- provider: pypi
|
|
|
|
user: jab
|
|
|
|
password:
|
|
|
|
secure: B9LLgXkTbtjeC/IbH4wh9PEBzvKEAuYo3EBNW5f1xuLqVqtsysIyxJa5ar/FQ4qwUCBwZPFAXFurN3lLzRhb2Tc04YQ0GYVv6f8lkzwrjoWau4iB9Qt/nnvdRa7KryEJvtenHCAnwoEUaADCjkZjwo6fIA0hEOLB6/AYfhfgXYA=
|
|
|
|
on:
|
|
|
|
tags: true
|
|
|
|
|
|
|
|
# https://docs.travis-ci.com/user/deployment/releases/
|
|
|
|
- provider: releases
|
|
|
|
api_key:
|
|
|
|
secure: 02GCTV4ja1dWQqzIznOdvVdJfEcIIougCv2OsQapDr6KjtgzpcBvDC4Z57eDsZX2JwharKdz3CmYJaRLCIDkVCYiyBxovO6v8o4Kww21v/4KMkpBmoGQmn9WiR1NYiK+dxlQb59+9t/DTYT39Wq6ZD+3sCETRdRZgraMNZWr8sA=
|
|
|
|
on:
|
|
|
|
tags: true
|