diff options
Diffstat (limited to '.travis.yml')
| -rw-r--r-- | .travis.yml | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/.travis.yml b/.travis.yml index 6ef3dc6..680496f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,29 @@ before_install: - - sudo apt-get update -qq || true - - sudo apt-get --reinstall install -qq language-pack-en language-pack-es + - "if [[ $NMODE == 'nikola' ]]; then sudo apt-get update -qq || true; fi" + - "if [[ $NMODE == 'nikola' ]]; then sudo apt-get --reinstall install -qq language-pack-en-base language-pack-pl-base; fi" language: python +cache: apt python: - "2.6" - "2.7" - "3.3" +matrix: + include: + - python: "2.7" + env: NMODE=flake8 +env: + NMODE=nikola install: - - "pip install -r requirements-tests.txt --use-mirrors" - - "pip install . --use-mirrors" + - "if [[ $NMODE == 'nikola' ]]; then pip install -r requirements-tests.txt --use-mirrors; fi" + - "if [[ $NMODE == 'nikola' ]]; then pip install . --use-mirrors; fi" + - "if [[ $NMODE == 'flake8' ]]; then pip install flake8 --use-mirrors; fi" # We run tests, nikola (to see if the command is executable) and flake8. script: - - nosetests --with-coverage --cover-package=nikola --with-doctest --doctest-options=+NORMALIZE_WHITESPACE --logging-filter=-yapsy - - nikola help - - "flake8 --ignore=E501 ." + - "if [[ $NMODE == 'nikola' ]]; then nosetests --with-coverage --cover-package=nikola --with-doctest --doctest-options=+NORMALIZE_WHITESPACE --logging-filter=-yapsy; fi" + - "if [[ $NMODE == 'nikola' ]]; then nikola help; fi" + - "if [[ $NMODE == 'flake8' ]]; then flake8 --ignore=E501 .; fi" after_success: - - coveralls + - "if [[ $NMODE == 'nikola' ]]; then coveralls; fi" notifications: irc: channels: |
