2017-11-14 23:44:26 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
|
|
|
|
2017-11-20 19:50:24 +00:00
|
|
|
|
2017-11-14 23:44:26 +00:00
|
|
|
build-ubuntu:
|
|
|
|
stage: build
|
|
|
|
image: poezio/build-base:latest
|
|
|
|
script:
|
|
|
|
- python3 setup.py sdist
|
|
|
|
- python3 setup.py bdist
|
|
|
|
artifacts:
|
|
|
|
expire_in: 2 weeks
|
|
|
|
paths:
|
|
|
|
- dist/
|
|
|
|
|
2017-11-20 19:50:24 +00:00
|
|
|
security-check:
|
|
|
|
stage: test
|
|
|
|
image: python:3
|
|
|
|
script:
|
|
|
|
- pip3 install safety
|
|
|
|
- safety check -r requirements.txt
|
|
|
|
|
2017-11-14 23:44:26 +00:00
|
|
|
test-ubuntu:
|
|
|
|
stage: test
|
|
|
|
image: poezio/test-base:latest
|
2016-12-04 23:21:20 +00:00
|
|
|
script:
|
|
|
|
- git clone git://git.louiz.org/slixmpp
|
2017-11-14 23:44:26 +00:00
|
|
|
- pip3 install --upgrade pip
|
|
|
|
- pip3 install pytest pyasn1-modules --upgrade
|
2016-12-04 23:21:20 +00:00
|
|
|
- pushd slixmpp
|
|
|
|
- python3 setup.py build
|
|
|
|
- python3 setup.py install
|
|
|
|
- popd
|
2017-11-14 23:44:26 +00:00
|
|
|
- python3 setup.py install
|
|
|
|
- py.test -v test/
|
|
|
|
- pylint -E poezio
|