mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Update Tox config and fix failing CI envs
Updates base Python version for Travis CI from 2.7 to 3.6 and fixes a linting error.
This commit is contained in:
parent
2e82a53cdf
commit
9e07234bae
3 changed files with 5 additions and 5 deletions
|
|
@ -1,11 +1,11 @@
|
||||||
language: python
|
language: python
|
||||||
python:
|
python:
|
||||||
- "3.5"
|
- "3.6"
|
||||||
env:
|
env:
|
||||||
- TOX_ENV=docs
|
- TOX_ENV=docs
|
||||||
- TOX_ENV=flake8
|
- TOX_ENV=flake8
|
||||||
- TOX_ENV=py27
|
- TOX_ENV=py27
|
||||||
- TOX_ENV=py35
|
- TOX_ENV=py36
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- python: 3.6
|
- python: 3.6
|
||||||
|
|
|
||||||
|
|
@ -138,6 +138,6 @@ if __name__ == '__main__':
|
||||||
args.port, args.server)
|
args.port, args.server)
|
||||||
try:
|
try:
|
||||||
httpd.serve_forever()
|
httpd.serve_forever()
|
||||||
except KeyboardInterrupt as e:
|
except KeyboardInterrupt:
|
||||||
logger.info("Shutting down server.")
|
logger.info("Shutting down server.")
|
||||||
httpd.socket.close()
|
httpd.socket.close()
|
||||||
|
|
|
||||||
4
tox.ini
4
tox.ini
|
|
@ -22,7 +22,7 @@ commands =
|
||||||
- coveralls
|
- coveralls
|
||||||
|
|
||||||
[testenv:docs]
|
[testenv:docs]
|
||||||
basepython = python2.7
|
basepython = python3.6
|
||||||
deps =
|
deps =
|
||||||
-rrequirements/docs.pip
|
-rrequirements/docs.pip
|
||||||
changedir = docs
|
changedir = docs
|
||||||
|
|
@ -34,7 +34,7 @@ application-import-names = pelican
|
||||||
import-order-style = cryptography
|
import-order-style = cryptography
|
||||||
|
|
||||||
[testenv:flake8]
|
[testenv:flake8]
|
||||||
basepython = python2.7
|
basepython = python3.6
|
||||||
deps =
|
deps =
|
||||||
-rrequirements/style.pip
|
-rrequirements/style.pip
|
||||||
commands =
|
commands =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue