1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
image: ci-gajim:master
stages:
- test
- build
run-test:
stage: test
script:
- python3 -m pylint nbxmpp --disable=C0103,C0201,C0209,C0301,C0326,C0330,W0201,W0212,W0221,W0231,W0233,W0621,W0622,W0707,R0201,R0801,E1101,E1135
- coverage run --source=nbxmpp -m unittest discover -v
- coverage report -mi
- coverage xml -i
coverage: "/TOTAL.+ ([0-9]{1,3}%)/"
artifacts:
reports:
cobertura: coverage.xml
# C0103 invalid-name
# C0201 consider-iterating-dictionary
# C0209 consider-using-f-string
# C0301 line-too-long
# C0326 bad-whitespace
# C0330 bad-continuation
# W0201 attribute-defined-outside-init
# W0212 protected-access
# W0221 arguments-differ
# W0231 super-init-not-called
# W0233 non-parent-init-called
# W0621 redefined-outer-name
# W0622 redefined-builtin
# W0707 raise-missing-from
# R0201 no-self-use
# R0801 duplicate-code
# E1101 no-member
# E1135 unsupported-membership-test
run-build:
stage: build
script:
- python3 setup.py sdist
artifacts:
name: "nbxmpp-$CI_COMMIT_SHA"
expire_in: 1 week
paths:
- dist/nbxmpp-*.tar.gz
|