|
@@ -1,32 +1,60 @@
|
|
|
|
|
|
-before_script:
|
|
|
- - wget https://git.gwillz.com.au/snippets/8/raw -O mk2pylint.cfg -q
|
|
|
- - wget https://git.gwillz.com.au/snippets/9/raw -O doc-style.css -q
|
|
|
- - pip install pylint epydoc docutils --user -q
|
|
|
-
|
|
|
-build:
|
|
|
- type: build
|
|
|
+build:py2:
|
|
|
+ stage: build
|
|
|
+ tags:
|
|
|
+ - python2
|
|
|
+ - linux
|
|
|
+ script:
|
|
|
+ - python2 setup.py build
|
|
|
+ - python2 setup.py install --user
|
|
|
+
|
|
|
+build:py3:
|
|
|
+ stage: build
|
|
|
tags:
|
|
|
- - python
|
|
|
+ - python3
|
|
|
+ - linux
|
|
|
script:
|
|
|
- - python setup.py build
|
|
|
- - python setup.py install --user
|
|
|
+ - python3 setup.py build
|
|
|
+ - python3 setup.py install --user
|
|
|
|
|
|
deploy-api:
|
|
|
- type: build
|
|
|
+ stage: deploy
|
|
|
tags:
|
|
|
- - python
|
|
|
+ - python2
|
|
|
+ - linux
|
|
|
- mk2-docs
|
|
|
allow_failure: true
|
|
|
script:
|
|
|
+ - wget https://git.gwillz.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
|
|
|
+ --inheritance grouped --css doc-style.css
|
|
|
+ --name 'Async Events' avent
|
|
|
- cp html/* -r /srv/api/avent
|
|
|
|
|
|
-lint:
|
|
|
- type: test
|
|
|
+lint:py2:
|
|
|
+ stage: test
|
|
|
+ tags:
|
|
|
+ - python2
|
|
|
+ - linux
|
|
|
+ script:
|
|
|
+ - wget https://git.gwillz.com.au/snippets/8/raw -O mk2pylint.cfg -q
|
|
|
+ - python2 -m pylint --rcfile=mk2pylint.cfg avent --reports=no || [[ $(($? & 3)) == 0 ]]
|
|
|
+
|
|
|
+lint:py3:
|
|
|
+ stage: test
|
|
|
+ tags:
|
|
|
+ - python3
|
|
|
+ - linux
|
|
|
+ script:
|
|
|
+ - wget https://git.gwillz.com.au/snippets/8/raw -O mk2pylint.cfg -q
|
|
|
+ - python3 -m pylint --rcfile=mk2pylint.cfg avent --reports=no || [[ $(($? & 3)) == 0 ]]
|
|
|
+
|
|
|
+test:
|
|
|
+ stage: test
|
|
|
tags:
|
|
|
- - python
|
|
|
+ - python3
|
|
|
+ - linux
|
|
|
script:
|
|
|
- - pylint --rcfile=mk2pylint.cfg avent --reports=no --disable=fixme || [[ $(($? & 3)) == 0 ]]
|
|
|
+ - python3 -Bm coverage run -m unittest tests
|
|
|
+ - python3 -Bm coverage report -m
|