language: python
python: 2.7
env:
- TOXENV=py27
- TOXENV=precise
- TOXENV=trunk
- TOXENV=pypy
- TOXENV=py33
- TOXENV=docs
matrix:
  allow_failures:
  - env: TOXENV=pypy
  - env: TOXENV=py33
  - env: TOXENV=docs
install:
- "./.travis-workarounds.sh"
- pip install -U tox
script: tox
notifications:
  irc:
    use_notice: true
    skip_join: true
    channels:
    - irc.freenode.org#scrapy
deploy:
  provider: pypi
  distributions: "sdist bdist_wheel"
  user: scrapy
  password:
    secure: JaAKcy1AXWXDK3LXdjOtKyaVPCSFoCGCnW15g4f65E/8Fsi9ZzDfmBa4Equs3IQb/vs/if2SVrzJSr7arN7r9Z38Iv1mUXHkFAyA3Ym8mThfABBzzcUWEQhIHrCX0Tdlx9wQkkhs+PZhorlmRS4gg5s6DzPaeA2g8SCgmlRmFfA=
  on:
    tags: true
    all_branches: true
    repo: scrapy/scrapy
    condition: "$TOXENV == py27 && $TRAVIS_TAG =~ ^[0-9]\.[0-9]*[02468]\."

language: python
python: 2.7
env:
- TOXENV=py27
- TOXENV=precise
- TOXENV=trunk
- TOXENV=pypy
- TOXENV=py33
- TOXENV=docs
matrix:
  allow_failures:
  - env: TOXENV=pypy
  - env: TOXENV=py33
  - env: TOXENV=docs
install:
- "./.travis-workarounds.sh"
- pip install -U tox
script: tox
notifications:
  irc:
    use_notice: true
    skip_join: true
    channels:
    - irc.freenode.org#scrapy
deploy:
  provider: pypi
  distributions: "sdist bdist_wheel"
  user: scrapy
  password:
    secure: JaAKcy1AXWXDK3LXdjOtKyaVPCSFoCGCnW15g4f65E/8Fsi9ZzDfmBa4Equs3IQb/vs/if2SVrzJSr7arN7r9Z38Iv1mUXHkFAyA3Ym8mThfABBzzcUWEQhIHrCX0Tdlx9wQkkhs+PZhorlmRS4gg5s6DzPaeA2g8SCgmlRmFfA=
  on:
    tags: true
    all_branches: true
    repo: scrapy/scrapy
    condition: "$TOXENV == py27 && $TRAVIS_TAG =~ ^[0-9]\\.[0-9]*[02468]\\."

Fix Travis CI config for conditional releases
Fix Travis CI config for conditional releases
