Skip to content

Commit

Permalink
Fix tests (remove unused dependencies, move to v7/)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwpolska committed Jan 8, 2017
1 parent e87add9 commit 4ab0897
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Expand Up @@ -7,23 +7,23 @@ addons:
apt:
packages:
- language-pack-en-base
- enchant
python:
- "3.3"
- "3.4"
- "3.5"
- "3.6"
matrix:
include:
- python: "3.5"
- python: "3.6"
env: NMODE=flake8
env:
NMODE=nikola
install:
- "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 ipykernel notebook PyYAML; fi"
- "if [[ $NMODE == 'nikola' ]]; then wget https://github.com/getnikola/wheelhouse/archive/$(getpyver.py).zip; fi"
- "if [[ $NMODE == 'nikola' ]]; then unzip $(getpyver.py).zip; fi"
- "if [[ $NMODE == 'nikola' ]]; then pip install --use-wheel --no-index --find-links=wheelhouse-$(getpyver.py short) lxml Pillow ipykernel notebook PyYAML; fi"
- "if [[ $NMODE == 'nikola' ]]; then pip install git+https://github.com/getnikola/nikola.git#egg=Nikola; fi"
- "if [[ $NMODE == 'nikola' ]]; then find v7/*/ | grep -v import_tumblr | grep -v wiki | grep 'requirements.txt' | xargs cat | sort | uniq | xargs pip install && true; fi"
- "if [[ $NMODE == 'nikola' ]]; then find v7 -not -path v7/wiki/requirements.txt -not -path v7/slimish/requirements.txt -not -path v7/import_tumblr/requirements.txt -name requirements.txt | xargs cat | sort | uniq | xargs pip install && true; fi"
- "if [[ $NMODE == 'flake8' ]]; then pip install flake8; fi"
script:
- "if [[ $NMODE == 'nikola' ]]; then py.test tests/; fi"
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_command_tags.py
Expand Up @@ -10,7 +10,7 @@

from nikola import nikola

PLUGIN_PATH = os.path.abspath(os.path.join('v6', 'tags'))
PLUGIN_PATH = os.path.abspath(os.path.join('v7', 'tags'))
sys.path.append(PLUGIN_PATH)

try:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_helloworld.py
Expand Up @@ -5,7 +5,7 @@
import sys
import unittest

sys.path.append(os.path.join('v6', 'helloworld'))
sys.path.append(os.path.join('v7', 'helloworld'))

from helloworld import Plugin as HelloWorld
from nikola.utils import LOGGER
Expand Down

0 comments on commit 4ab0897

Please sign in to comment.