.travis.yml
author Wander Lairson Costa <wcosta@mozilla.com>
Tue, 30 Jun 2015 15:45:46 -0300
changeset 5869 240bac6fe40b096958476a1e0edf22e753863ece
parent 5738 773be9e75255f3cae77a73f8247eda2368ee2f46
child 5917 da436987c292a70b5b031c6c96fc397e5d5828d6
permissions -rw-r--r--
Bug 1178899: Install redo package. r=bhearsum redo is a dependency for tools.

language: python
python:
  - "2.7"

sudo: false

env:
  global:
    - PIP_FIND_LINKS=file://$HOME/.cache/pip
    - PIP_CACHE_DIR=$HOME/.cache/pip
  matrix:
    - TOX_ENV=py27-hg2.6
    - TOX_ENV=py26-hg2.6
    - TOX_ENV=py27-hg3.2

cache:
  directories:
    - $HOME/.cache/pip
    - $TRAVIS_BUILD_DIR/.tox

before_script:
  - git config --global user.email "travis@travis-ci.org"
  - git config --global user.name "Travis McTravis"
  - cp lib/python/mozilla_buildtools/test/hgrc ~/.hgrc

install:
  - pip install tox==1.9.2

script:
  - tox -e $TOX_ENV
  # Remove logs to avoid cache uploads
  - rm -rf $HOME/.cache/pip/log

after_script:
  - tox -e py27-coveralls

# currently cannot customise per user fork, see:
# https://github.com/travis-ci/travis-ci/issues/1094
# please comment out this section in your personal fork!
notifications:
  irc:
    channels:
      - "irc.mozilla.org#releng"
    on_success: always
    on_failure: always
    template:
      - "\x02%{repository}\x0314#%{build_number}\x03\x02 (%{branch} - %{commit} : %{author}): \x02\x0312%{message}\x02\x03"
      - "\x02Change view\x02 : \x0314%{compare_url}\x03"
      - "\x02Build details\x02 : \x0314%{build_url}\x03"
      - "\x02Commit message\x02 : \x0314%{commit_message}\x03"