language: python sudo: false branches: only: - master - /^\d\.\d+$/ - /^\d\.\d+\.\d+(rc\d+|\.dev\d+)?$/ matrix: include: - python: 2.7 env: TOXENV=py27 - python: 2.7 env: TOXENV=jessie - python: 3.3 env: TOXENV=py33 - python: 3.5 env: TOXENV=py35 - python: 3.6 env: TOXENV=py36 - python: 2.7 env: TOXENV=pypy - python: 3.6 env: TOXENV=docs allow_failures: - python: 2.7 env: TOXENV=pypy install: - | if [ "$TOXENV" = "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 # get latest portable PyPy from pyenv directly (thanks to natural version sort option -V) export PYPY_VERSION=`"$PYENV_ROOT/bin/pyenv" install --list |grep -o -E 'pypy-portable-[0-9][\.0-9]*$' |sort -V |tail -1` "$PYENV_ROOT/bin/pyenv" install --skip-existing "$PYPY_VERSION" virtualenv --python="$PYENV_ROOT/versions/$PYPY_VERSION/bin/python" "$HOME/virtualenvs/$PYPY_VERSION" source "$HOME/virtualenvs/$PYPY_VERSION/bin/activate" fi - pip install -U tox twine wheel codecov script: tox after_success: - codecov notifications: irc: use_notice: true skip_join: true channels: - irc.freenode.org#scrapy cache: directories: - $HOME/.cache/pip deploy: provider: pypi distributions: "sdist bdist_wheel" user: scrapy password: secure: JaAKcy1AXWXDK3LXdjOtKyaVPCSFoCGCnW15g4f65E/8Fsi9ZzDfmBa4Equs3IQb/vs/if2SVrzJSr7arN7r9Z38Iv1mUXHkFAyA3Ym8mThfABBzzcUWEQhIHrCX0Tdlx9wQkkhs+PZhorlmRS4gg5s6DzPaeA2g8SCgmlRmFfA= on: tags: true repo: scrapy/scrapy condition: "$TOXENV == py27 && $TRAVIS_TAG =~ ^[0-9]+[.][0-9]+[.][0-9]+(rc[0-9]+|[.]dev[0-9]+)?$"