2017-11-14 23:44:26 +00:00
|
|
|
stages:
|
|
|
|
- test
|
2017-12-01 18:03:46 +00:00
|
|
|
- build
|
2017-11-14 23:44:26 +00:00
|
|
|
|
2017-11-20 20:04:22 +00:00
|
|
|
build-doc:
|
|
|
|
stage: build
|
2018-08-19 21:17:19 +00:00
|
|
|
only:
|
|
|
|
- branches@poezio/poezio
|
|
|
|
tags:
|
|
|
|
- www
|
|
|
|
image: docker.louiz.org/poezio/poezio/doc-builder
|
2017-11-20 20:04:22 +00:00
|
|
|
script:
|
2018-08-19 21:17:19 +00:00
|
|
|
- ./update.sh
|
2018-10-13 11:44:37 +00:00
|
|
|
- . ./poezio-venv/bin/activate
|
2017-11-20 20:04:22 +00:00
|
|
|
- make doc
|
2018-08-19 21:17:19 +00:00
|
|
|
- rm -rf /www/latest
|
|
|
|
- mv doc/build/html/ /www/latest
|
2017-11-20 19:50:24 +00:00
|
|
|
|
2017-11-14 23:44:26 +00:00
|
|
|
build-ubuntu:
|
|
|
|
stage: build
|
2018-07-21 14:57:34 +00:00
|
|
|
image: python:3
|
2017-11-14 23:44:26 +00:00
|
|
|
script:
|
|
|
|
- python3 setup.py sdist
|
|
|
|
- python3 setup.py bdist
|
|
|
|
artifacts:
|
|
|
|
expire_in: 2 weeks
|
|
|
|
paths:
|
|
|
|
- dist/
|
2018-07-21 14:57:34 +00:00
|
|
|
only:
|
|
|
|
- master
|
2017-11-14 23:44:26 +00:00
|
|
|
|
2017-11-20 19:50:24 +00:00
|
|
|
security-check:
|
|
|
|
stage: test
|
|
|
|
image: python:3
|
|
|
|
script:
|
|
|
|
- pip3 install safety
|
|
|
|
- safety check -r requirements.txt
|
|
|
|
|
2018-07-23 17:43:01 +00:00
|
|
|
pytest-3.5:
|
2017-11-14 23:44:26 +00:00
|
|
|
stage: test
|
2018-07-23 17:43:01 +00:00
|
|
|
image: python:3.5
|
|
|
|
script:
|
|
|
|
- apt-get update && apt-get install -y libidn11-dev
|
|
|
|
- git clone git://git.louiz.org/slixmpp
|
|
|
|
- pip3 install pytest pyasn1-modules cffi --upgrade
|
|
|
|
- cd slixmpp
|
|
|
|
- python3 setup.py install
|
|
|
|
- cd ..
|
|
|
|
- python3 setup.py install
|
|
|
|
- py.test -v test/
|
|
|
|
|
2018-07-23 18:38:34 +00:00
|
|
|
pytest-3.6:
|
2018-07-23 17:43:01 +00:00
|
|
|
stage: test
|
|
|
|
image: python:3.6
|
|
|
|
script:
|
|
|
|
- apt-get update && apt-get install -y libidn11-dev
|
|
|
|
- git clone git://git.louiz.org/slixmpp
|
|
|
|
- pip3 install pytest pyasn1-modules cffi --upgrade
|
|
|
|
- cd slixmpp
|
|
|
|
- python3 setup.py install
|
|
|
|
- cd ..
|
|
|
|
- python3 setup.py install
|
|
|
|
- py.test -v test/
|
|
|
|
|
2018-07-23 18:38:34 +00:00
|
|
|
pytest-latest:
|
2018-07-23 17:43:01 +00:00
|
|
|
stage: test
|
2018-08-11 20:57:59 +00:00
|
|
|
image: python:3
|
2016-12-04 23:21:20 +00:00
|
|
|
script:
|
2018-07-21 14:57:34 +00:00
|
|
|
- apt-get update && apt-get install -y libidn11-dev
|
2016-12-04 23:21:20 +00:00
|
|
|
- git clone git://git.louiz.org/slixmpp
|
2018-07-21 14:57:34 +00:00
|
|
|
- pip3 install pytest pyasn1-modules cffi --upgrade
|
|
|
|
- cd slixmpp
|
2016-12-04 23:21:20 +00:00
|
|
|
- python3 setup.py install
|
2018-07-21 14:57:34 +00:00
|
|
|
- cd ..
|
2017-11-14 23:44:26 +00:00
|
|
|
- python3 setup.py install
|
|
|
|
- py.test -v test/
|
2018-07-21 14:57:34 +00:00
|
|
|
|
2018-08-08 22:56:59 +00:00
|
|
|
pylint-plugins:
|
|
|
|
stage: test
|
|
|
|
image: python:3
|
|
|
|
allow_failure: true
|
|
|
|
script:
|
|
|
|
- apt-get update && apt-get install -y libidn11-dev
|
|
|
|
- pip3 install pylint pyasn1-modules cffi --upgrade
|
2018-08-08 23:03:22 +00:00
|
|
|
- pip3 install -e git+git://git.louiz.org/slixmpp#egg=slixmpp
|
2018-08-08 22:56:59 +00:00
|
|
|
- pip3 install -r requirements-plugins.txt
|
|
|
|
- python3 setup.py install
|
|
|
|
- pylint -E plugins
|
|
|
|
|
2018-01-13 14:44:00 +00:00
|
|
|
formatting-check:
|
|
|
|
stage: test
|
2018-07-21 14:57:34 +00:00
|
|
|
image: python:3
|
2018-07-23 17:43:01 +00:00
|
|
|
allow_failure: true
|
2018-01-13 14:44:00 +00:00
|
|
|
script:
|
|
|
|
- pip3 install yapf
|
2018-01-15 23:06:34 +00:00
|
|
|
- yapf -dpr poezio
|
2018-01-13 15:04:22 +00:00
|
|
|
- "[ -n \"$(yapf -dpr poezio)\" ] && echo 'Formatting check failed, please run yapf' && exit 1 || echo 'Formatting check succeeded'"
|