Browse Source

Merge pull request #297 from hyde/travis-upgrades

Improve travis builds
main
Lakshmi 9 years ago
parent
commit
390736f9b9
1 changed files with 17 additions and 1 deletions
  1. +17
    -1
      .travis.yml

+ 17
- 1
.travis.yml View File

@@ -2,6 +2,11 @@ language: python
python:
- "2.7"

# Cache pip requirements for faster builds
cache:
directories:
- $HOME/.cache/pip

install:
- sudo apt-get purge -y nodejs
- sudo apt-get install -qqy python-software-properties
@@ -18,8 +23,19 @@ install:
# Python test requirements
- pip install tox

# Run each tox environment separately
env:
- TOX_ENV=py27
- TOX_ENV=pep8

before_script:
- export PYTHONPATH=$PYTHONPATH:/usr/share/asciidoc/

script:
- tox
- tox -e $TOX_ENV

# Only build for the master branch
# Note that this does not prevent pull request builds
branches:
only:
master

Loading…
Cancel
Save