Loading .gitlab-ci.yml +29 −3 Original line number Diff line number Diff line Loading @@ -83,6 +83,30 @@ py36-test: - tox -s true py36-lint: stage: test image: python:3.6 script: - export TOXENV=py36-lint - tox -s true py36-safety: stage: test image: python:3.6 script: - export TOXENV=py36-safety - tox -s true py36-metric: stage: test image: python:3.6 script: - export TOXENV=py36-metric - tox -s true # py36-test-pyqt: # stage: test # image: python:3.6 Loading @@ -108,10 +132,12 @@ py36-release: - twine check dist/* # try upload in test platform before the oficial - twine upload --repository-url https://test.pypi.org/legacy/ dist/* - pip install --index-url https://test.pypi.org/simple/ helpdev - pip install --no-deps --index-url https://test.pypi.org/simple/ helpdev - pip uninstall helpdev # upload to oficial - twine upload dist/* - twine upload --repository-url https://upload.pypi.org/legacy/ dist/* - pip install helpdev==$CI_COMMIT_TAG - helpdev --version - pip uninstall helpdev - pip install helpdev only: - tags tox.ini +16 −12 Original line number Diff line number Diff line Loading @@ -2,8 +2,9 @@ envlist = # tests without qt binding because they are hard to install via pip {win,lin,mac}-{py27,py36,py37}-{build} {win,lin,mac}-{py36}-{test,develop,doc,release}-{pyqt,pyside} {win,lin,mac}-{py27,py34,py36,py37}-{build} {win,lin,mac}-{py36}-{develop,doc,release}-{pyqt,pyside} {win,lin,mac}-{py36}-{test,lint,safety,metric}-{pyqt,pyside} [testenv] Loading @@ -29,6 +30,9 @@ deps = # Dependencies for each environment build: -rreq-stable.txt test: -rreq-test.txt lint: -rreq-test.txt safety: -rreq-test.txt metric: -rreq-test.txt develop: -rreq-develop.txt doc: -rreq-doc.txt release: -rreq-release.txt Loading Loading @@ -82,26 +86,26 @@ commands = # test: pylama -v --options="tox.ini" "{toxinidir}" # Code linting test: pycodestyle --config="tox.ini" "." lint: pycodestyle --config="tox.ini" "." # test: pyflakes "./helpdev" # test: mypy --config-file="tox.ini" "helpdev" # Code and doc linting test: pylint -r y --rcfile="pylint.ini" "./helpdev" --disable="R1260,R0912" lint: pylint -r y --rcfile="pylint.ini" "./helpdev" --disable="R1260,R0912" # Doc linting test: pydocstyle --config="tox.ini" "." test: doc8 --config="tox.ini" "." lint: pydocstyle --config="tox.ini" "." lint: doc8 --config="tox.ini" "." # Safety test: safety check test: bandit --recursive --skip=B404,B603 "./helpdev" safety: safety check safety: bandit --recursive --skip=B404,B603 "./helpdev" # Code metrics test: radon cc -a "./helpdev" --exclude="*/ui/*" test: radon mi "./helpdev" --exclude="*/ui/*" test: radon raw -s "./helpdev" --exclude="*/ui/*" test: radon hal -f "./helpdev" --exclude="*/ui/*" metric: radon cc -a "./helpdev" --exclude="*/ui/*" metric: radon mi "./helpdev" --exclude="*/ui/*" metric: radon raw -s "./helpdev" --exclude="*/ui/*" metric: radon hal -f "./helpdev" --exclude="*/ui/*" # DOC (inside docs folder) ---------------------------------------------- Loading Loading
.gitlab-ci.yml +29 −3 Original line number Diff line number Diff line Loading @@ -83,6 +83,30 @@ py36-test: - tox -s true py36-lint: stage: test image: python:3.6 script: - export TOXENV=py36-lint - tox -s true py36-safety: stage: test image: python:3.6 script: - export TOXENV=py36-safety - tox -s true py36-metric: stage: test image: python:3.6 script: - export TOXENV=py36-metric - tox -s true # py36-test-pyqt: # stage: test # image: python:3.6 Loading @@ -108,10 +132,12 @@ py36-release: - twine check dist/* # try upload in test platform before the oficial - twine upload --repository-url https://test.pypi.org/legacy/ dist/* - pip install --index-url https://test.pypi.org/simple/ helpdev - pip install --no-deps --index-url https://test.pypi.org/simple/ helpdev - pip uninstall helpdev # upload to oficial - twine upload dist/* - twine upload --repository-url https://upload.pypi.org/legacy/ dist/* - pip install helpdev==$CI_COMMIT_TAG - helpdev --version - pip uninstall helpdev - pip install helpdev only: - tags
tox.ini +16 −12 Original line number Diff line number Diff line Loading @@ -2,8 +2,9 @@ envlist = # tests without qt binding because they are hard to install via pip {win,lin,mac}-{py27,py36,py37}-{build} {win,lin,mac}-{py36}-{test,develop,doc,release}-{pyqt,pyside} {win,lin,mac}-{py27,py34,py36,py37}-{build} {win,lin,mac}-{py36}-{develop,doc,release}-{pyqt,pyside} {win,lin,mac}-{py36}-{test,lint,safety,metric}-{pyqt,pyside} [testenv] Loading @@ -29,6 +30,9 @@ deps = # Dependencies for each environment build: -rreq-stable.txt test: -rreq-test.txt lint: -rreq-test.txt safety: -rreq-test.txt metric: -rreq-test.txt develop: -rreq-develop.txt doc: -rreq-doc.txt release: -rreq-release.txt Loading Loading @@ -82,26 +86,26 @@ commands = # test: pylama -v --options="tox.ini" "{toxinidir}" # Code linting test: pycodestyle --config="tox.ini" "." lint: pycodestyle --config="tox.ini" "." # test: pyflakes "./helpdev" # test: mypy --config-file="tox.ini" "helpdev" # Code and doc linting test: pylint -r y --rcfile="pylint.ini" "./helpdev" --disable="R1260,R0912" lint: pylint -r y --rcfile="pylint.ini" "./helpdev" --disable="R1260,R0912" # Doc linting test: pydocstyle --config="tox.ini" "." test: doc8 --config="tox.ini" "." lint: pydocstyle --config="tox.ini" "." lint: doc8 --config="tox.ini" "." # Safety test: safety check test: bandit --recursive --skip=B404,B603 "./helpdev" safety: safety check safety: bandit --recursive --skip=B404,B603 "./helpdev" # Code metrics test: radon cc -a "./helpdev" --exclude="*/ui/*" test: radon mi "./helpdev" --exclude="*/ui/*" test: radon raw -s "./helpdev" --exclude="*/ui/*" test: radon hal -f "./helpdev" --exclude="*/ui/*" metric: radon cc -a "./helpdev" --exclude="*/ui/*" metric: radon mi "./helpdev" --exclude="*/ui/*" metric: radon raw -s "./helpdev" --exclude="*/ui/*" metric: radon hal -f "./helpdev" --exclude="*/ui/*" # DOC (inside docs folder) ---------------------------------------------- Loading