forked from gajim/gajim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
50 lines (45 loc) · 1.43 KB
/
.gitlab-ci.yml
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
48
49
50
before_script:
- sudo apt-get update -qq && sudo apt-get install -y -qq libtool pkg-config gir1.2-gtk-3.0 gir1.2-soup-2.4 python3-gi python3-cairo
- sudo apt-get build-dep -y -qq gajim-default-nightly
stages:
- test
- build
run-tests:
stage: test
script:
- rm -rf civenv-master
- 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 pylint==2.4.4
- pip3 install -I codespell
- mypy -V
- mypy gajim
- scripts/dev/pylint-ci.sh --jobs=2 gajim
- python3 -m unittest discover -s test/no_gui -v
- codespell -I codespell.conf --skip="*__pycache__*,gajim/data/icons,gajim/data/sounds,gajim/data/emoticons" gajim
- deactivate
- rm -rf civenv-master
run-appdata:
stage: test
script:
- appstream-util validate data/org.gajim.Gajim.appdata.xml.in
run-build:
stage: build
script:
- python3 setup.py sdist
- cd dist
- GF=$(basename gajim-* .tar.gz)
- gzip -d $GF.tar.gz
- mkdir -p $GF/gajim/data/plugins/
- curl -O https://ftp.gajim.org/plugins_1/plugin_installer.zip
- unzip plugin_installer.zip -d $GF/gajim/data/plugins/
- rm plugin_installer.zip
- tar -uf $GF.tar $GF
- gzip $GF.tar
artifacts:
name: "gajim-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA"
expire_in: 1 week
paths:
- dist/gajim-*.tar.gz