12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- stages:
- - test
- - docs
- - build
- - deploy
- epydoc:
- stage: docs
- only:
- - master
- - tags
- artifacts:
- paths:
- - html/
- tags:
- - python2
- - linux
- script:
- - wget https://git.mk2es.com.au/snippets/9/raw -O doc-style.css -q
- - >-
- epydoc --no-sourcecode --no-frames --output html --simple-term -vv
- --inheritance grouped --css doc-style.css
- --name 'Async Events' avent
- pypi:
- stage: build
- only:
- - master
- - tags
- artifacts:
- paths:
- - dist/
- dependencies:
- - epydoc
- tags:
- - python3
- - linux
- script:
- - python3 setup.py bdist_wheel --universal
- lint:py2:
- stage: test
- tags:
- - python2
- - linux
- script:
- - wget https://git.mk2es.com.au/snippets/8/raw -O mk2pylint.cfg -q
- - python2 -m pylint --rcfile=mk2pylint.cfg avent --reports=no --ignore=fluid.py,strict.py || [[ $(($? & 3)) == 0 ]]
- lint:py3:
- stage: test
- tags:
- - python3
- - linux
- script:
- - wget https://git.mk2es.com.au/snippets/8/raw -O mk2pylint.cfg -q
- - python3 -m pylint --rcfile=mk2pylint.cfg avent --reports=no --ignore=compat || [[ $(($? & 3)) == 0 ]]
- units:
- stage: test
- tags:
- - python3
- - linux
- script:
- - python3 -Bm coverage run --source=avent --omit avent/compat/*.py -m unittest tests/*.py
- - python3 -Bm coverage report -m
- deploy:
- stage: deploy
- allow_failure: true
- dependencies:
- - epydoc
- - pypi
- only:
- - master
- - tags
- tags:
- - linux
- - mk2-docs
- script:
- - '[ -e /srv/pypi/packages/avent ] || mkdir /srv/pypi/packages/avent'
- - '[ -e /srv/api/avent ] || mkdir /srv/api/avent'
- - cp -r html/* /srv/api/avent
- - cp dist/*.whl /srv/pypi/packages/avent
|