Commit 5b67eee6 authored by Philipp Hörist's avatar Philipp Hörist

Update .gajim-ci.yml

parent d5e2fcb8
......@@ -9,18 +9,14 @@ stages:
- test
- build
Code Quality:
.quality:
stage: test
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- when: always
script:
- rm -rf civenv
- virtualenv -p python3 --system-site-packages civenv
- . ./civenv/bin/activate
- pip3 install -I mypy
- pip3 install -I git+https://dev.gajim.org/gajim/python-nbxmpp.git@master
- pip3 install -I git+https://dev.gajim.org/gajim/python-nbxmpp.git@$NBXMPP_BRANCH
- pip3 install -I pylint==2.4.4
- pip3 install -I codespell
- pip3 install -I coverage
......@@ -38,24 +34,33 @@ Code Quality:
- codespell -I codespell.conf --skip="*__pycache__*,gajim/data/icons,gajim/data/sounds,gajim/data/emoticons" gajim
- deactivate
- rm -rf civenv
- python3 setup.py build
- appstream-util validate build/data/org.gajim.Gajim.appdata.xml
coverage: "/TOTAL.+ ([0-9]{1,3}%)/"
artifacts:
reports:
cobertura: coverage.xml
interruptible: true
appdata.xml:
stage: test
code-quality-master:
extends: .quality
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- when: always
script:
- python3 setup.py build
- appstream-util validate build/data/org.gajim.Gajim.appdata.xml
interruptible: true
- if: '$CI_COMMIT_BRANCH == "master"'
variables:
NBXMPP_BRANCH: 'master'
code-quality-gajim_1.3:
extends: .quality
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: never
- if: '$CI_COMMIT_BRANCH == "gajim_1.3"'
variables:
NBXMPP_BRANCH: 'nbxmpp_2.0'
Linux:
linux:
stage: build
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
......@@ -71,7 +76,7 @@ Linux:
- dist/gajim-*.tar.gz
interruptible: true
Windows:
windows:
stage: build
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment