Skip to content

Commit

Permalink
[FIX] Adapt CI to poetry
Browse files Browse the repository at this point in the history
Remove auto generation of change log (temporary)
  • Loading branch information
joao-p-marques committed Apr 14, 2021
1 parent 48c4c97 commit ed35849
Show file tree
Hide file tree
Showing 4 changed files with 178 additions and 13 deletions.
27 changes: 16 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,28 @@ cache:

matrix:
include:
- python: 2.7
# Use python 3.8 as system executable for Poetry compatibility
- python: 3.8
env:
TOXENV=pylint
- python: 3.5
PY=2.7
- python: 3.8
env:
TOXENV=pylint
- python: 3.7
PY=3.5
- python: 3.8
env:
TOXENV=pylint
PY=3.7.1
DEPLOY="1"
- python: 3.8
env:
TOXENV=pylint
PY=3.8
- python: 3.9-dev
env:
TOXENV=pylint
PY=3.9-dev


install:
Expand All @@ -33,19 +39,18 @@ install:
- sed -i '/pip install ./d' ${TRAVIS_BUILD_DIR}/install.sh

# Install dependencies
- ${TRAVIS_BUILD_DIR}/install.sh

# Install testing dependencies
- pip install coveralls flake8==3.8.3 tox restructuredtext_lint pygments
- pip install poetry tox
# Use correct python version
- poetry env use ${PY}
- poetry install # includes dev dependencies by default

script:
- flake8 --ignore=E722,F601,F841,W503,W504,W605 --max-line-length=88 --exclude=__init__.py .
- restructuredtext-lint ${TRAVIS_BUILD_DIR}/README.rst
- poetry run flake8 --ignore=E722,F601,F841,W503,W504,W605 --max-line-length=88 --exclude=__init__.py .
- poetry run restructuredtext-lint ${TRAVIS_BUILD_DIR}/README.rst
- tox -e $TOXENV,profile-stats

after_success:
- coveralls
- python setup.py sdist # Build ChangeLog file from git log
- poetry run coveralls

deploy:
skip_cleanup: true # Allow to upload Changelog generated from tox
Expand Down
1 change: 0 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
wget -qO- https://deb.nodesource.com/setup | bash - \
&& apt-get install nodejs
npm install -g eslint
pip install .
162 changes: 161 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pylint-plugin-utils = "0.6"
[tool.poetry.dev-dependencies]
coveralls = {version = "^3.0.1", python = ">=3.5.0"}
nodeenv = "^1.6.0"
flake8 = "3.8.3"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down

0 comments on commit ed35849

Please sign in to comment.