Commit 024020f9 authored by Patrik Dufresne's avatar Patrik Dufresne

Add gitlab cicd

parent 1b126475
image: ikus060/docker-debian-py2-py3:stretch
stages:
- test
- publish
# Upgrade python and install dependencies to avoid compiling from sources.
before_script:
- apt-get update && apt-get -qq install asciidoc
test:py27:
stage: test
script:
# Register the plugin entry point and run the test
- python2 setup.py develop
- python2 setup.py nosetests
test:py3:
stage: test
script:
# Register the plugin entry point and run the test
- python3 setup.py develop
- python3 setup.py nosetests
publish_pypi:
stage: publish
only:
- tags
script:
- pip install wheel twine --upgrade
- python setup.py sdist bdist_wheel
- twine upload dist/* -u $PYPI_USR -p $PYPI_PWD
github_push:
stage: publish
only:
- branches
script:
- git push --force https://${GITHUB_USR}:${GITHUB_PWD}@github.com/ikus060/lektor-python-markdown.git refs/remotes/origin/${CI_COMMIT_REF_NAME}:refs/heads/${CI_COMMIT_REF_NAME}
- git push https://${GITHUB_USR}:${GITHUB_PWD}@github.com/ikus060/lektor-python-markdown.git --tags
......@@ -23,7 +23,7 @@ setup(
long_description_content_type='text/markdown',
name='lektor-asciidoc',
py_modules=['lektor_asciidoc'],
tests_require=['pytest'],
tests_require=['lektor'],
version='0.3',
url='https://github.com/nixjdm/lektor-asciidoc',
classifiers=[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment