1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-23 09:43:50 +00:00
scrapy/.travis.yml

66 lines
1.9 KiB
YAML
Raw Normal View History

2012-05-16 16:54:12 -03:00
language: python
sudo: false
branches:
only:
- master
- /^\d\.\d+$/
- /^\d\.\d+\.\d+(rc\d+|\.dev\d+)?$/
2017-01-06 16:10:14 +01:00
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
2016-09-01 15:25:38 +02:00
- python: 2.7
env: TOXENV=pypy
2017-01-06 16:10:14 +01:00
- python: 3.6
env: TOXENV=docs
2016-09-01 15:25:38 +02:00
allow_failures:
- python: 2.7
env: TOXENV=pypy
2012-05-16 16:54:12 -03:00
install:
2016-09-01 15:25:38 +02:00
- |
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
2017-04-12 16:32:21 +02:00
# 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`
2016-09-01 15:25:38 +02:00
"$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
2013-11-07 05:01:32 -02:00
script: tox
2015-08-12 16:40:04 -03:00
after_success:
- codecov
notifications:
irc:
use_notice: true
skip_join: true
channels:
- irc.freenode.org#scrapy
2015-07-31 16:39:12 -03:00
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]+)?$"