2018-08-22 21:19:47 +00:00
|
|
|
stages:
|
2021-07-05 20:44:41 +00:00
|
|
|
- lint
|
2018-08-22 21:19:47 +00:00
|
|
|
- test
|
|
|
|
- trigger
|
|
|
|
|
2021-07-05 20:44:41 +00:00
|
|
|
mypy:
|
|
|
|
stage: lint
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
image: python:3
|
|
|
|
script:
|
|
|
|
- pip3 install mypy
|
|
|
|
- mypy slixmpp
|
|
|
|
|
2016-12-04 23:11:49 +00:00
|
|
|
test:
|
2018-08-22 21:19:47 +00:00
|
|
|
stage: test
|
2016-12-04 23:11:49 +00:00
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
image: ubuntu:latest
|
|
|
|
script:
|
|
|
|
- apt update
|
2020-11-27 18:40:41 +00:00
|
|
|
- apt install -y python3 python3-pip cython3 gpg
|
2020-12-04 18:10:46 +00:00
|
|
|
- pip3 install emoji aiohttp
|
2016-12-04 23:11:49 +00:00
|
|
|
- ./run_tests.py
|
2018-08-22 21:19:47 +00:00
|
|
|
|
2020-12-04 22:08:00 +00:00
|
|
|
test_integration:
|
|
|
|
stage: test
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
image: ubuntu:latest
|
|
|
|
only:
|
|
|
|
variables:
|
|
|
|
- $CI_ACCOUNT1
|
|
|
|
- $CI_ACCOUNT2
|
|
|
|
script:
|
|
|
|
- apt update
|
|
|
|
- apt install -y python3 python3-pip cython3 gpg
|
|
|
|
- pip3 install emoji aiohttp aiodns
|
|
|
|
- ./run_integration_tests.py
|
|
|
|
|
2018-08-22 21:19:47 +00:00
|
|
|
trigger_poezio:
|
|
|
|
stage: trigger
|
|
|
|
tags:
|
|
|
|
- docker
|
|
|
|
image: appropriate/curl:latest
|
|
|
|
script:
|
|
|
|
- curl --request POST -F token="$SLIXMPP_TRIGGER_TOKEN" -F ref=master https://lab.louiz.org/api/v4/projects/18/trigger/pipeline
|