Skip to content

Commit

Permalink
Do not run code-analysis on Python 3.6 on Travis.
Browse files Browse the repository at this point in the history
Error is:

$ python --version
Python 3.6.3
$ bin/code-analysis
Traceback (most recent call last):
  File bin/code-analysis, line 16, in <module>
    import plone.recipe.codeanalysis
  File /home/travis/buildout-cache/eggs/plone.recipe.codeanalysis-3.0.1-py3.6.egg/plone/recipe/codeanalysis/__init__.py, line 20, in <module>
    import zc.buildout
ModuleNotFoundError: No module named 'zc.buildout'
  • Loading branch information
mauritsvanrees committed Feb 7, 2019
1 parent db504e3 commit df5a96b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ install:
- buildout -N -t 3 annotate
- buildout -N -t 3
script:
- bin/code-analysis
# Run code-analysis, except on Python 3.6, which mysteriously fails to find zc.buildout.
- python --version 2> /dev/stdout | grep -v 3.6 && bin/code-analysis
- bin/test
after_success:
- bin/createcoverage -d 'htmlcov'
Expand Down

0 comments on commit df5a96b

Please sign in to comment.