language: python
python:
    - "2.7"
    - "3.2"
before_install:
 - sudo apt-get update -qq
 - sudo apt-get install -qq --no-install-recommends asciidoc ruby-sass
install:
    - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then ln -s /usr/share/asciidoc/asciidocapi.py ~/virtualenv/python2.7/lib/python2.7/site-packages/; fi
    - pip install nose mock --use-mirrors
    - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install --use-mirrors unittest2; else pip install --use-mirrors unittest2py3k; fi
    - pip install . --use-mirrors
    - pip install Markdown
    - pip install webassets
    - pip install cssmin
script: nosetests -s pelican

language: python
python:
    - "2.7"
    - "3.2"
before_install:
 - sudo apt-get update -qq
 - sudo apt-get install -qq --no-install-recommends asciidoc ruby-sass
install:
    - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then ln -s /usr/share/asciidoc/asciidocapi.py ~/virtualenv/python2.7/lib/python2.7/site-packages/; fi
    - pip install nose mock --use-mirrors
    - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install --use-mirrors unittest2; else pip install --use-mirrors unittest2py3k; fi
    - pip install . --use-mirrors
    - pip install --use-mirrors Markdown
    - if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install --use-mirrors webassets cssmin; fi
script: nosetests -s pelican

Install webassets & cssmin only for Python 2.
Install webassets & cssmin only for Python 2.

webassets is not py3 compatible yet. This will avoid a failed install of
webassets for each py3 Travis build.
