summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml14
1 files changed, 9 insertions, 5 deletions
diff --git a/.travis.yml b/.travis.yml
index 680496f..fc27848 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,7 @@
before_install:
- "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"
+ - "pip install --upgrade pip wheel"
language: python
cache: apt
python:
@@ -14,14 +15,17 @@ matrix:
env:
NMODE=nikola
install:
- - "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.
+ - "if [[ $NMODE == 'nikola' ]]; then wget https://github.com/getnikola/wheelhouse/archive/$(scripts/getpyver.py).zip; fi"
+ - "if [[ $NMODE == 'nikola' ]]; then unzip $(scripts/getpyver.py).zip; fi"
+ - "if [[ $NMODE == 'nikola' ]]; then pip install --use-wheel --no-index --find-links=wheelhouse-$(scripts/getpyver.py short) lxml Pillow ipython; fi"
+ - "if [[ $NMODE == 'nikola' ]]; then pip install -r requirements-tests.txt; fi"
+ - "if [[ $NMODE == 'nikola' ]]; then pip install .; fi"
+ - "if [[ $NMODE == 'flake8' ]]; then pip install flake8; fi"
+# We run tests and nikola (to see if the command is executable) OR flake8.
script:
- "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"
+ - "if [[ $NMODE == 'flake8' ]]; then flake8 .; fi"
after_success:
- "if [[ $NMODE == 'nikola' ]]; then coveralls; fi"
notifications: