Philipp Hörist pushed to branch gajim_1.2 at gajim / gajim
Commits:
-
0af40757
by lovetox at 2021-01-03T12:50:54+01:00
1 changed file:
Changes:
| 1 |
-before_script:
|
|
| 2 |
- - 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
|
|
| 3 |
- - sudo apt-get build-dep -y -qq gajim-default-nightly
|
|
| 4 |
- |
|
| 5 |
-stages:
|
|
| 6 |
- - test
|
|
| 7 |
- - build
|
|
| 8 |
- |
|
| 9 |
-run-tests:
|
|
| 10 |
- stage: test
|
|
| 11 |
- script:
|
|
| 12 |
- - rm -rf civenv-master
|
|
| 13 |
- - virtualenv -p python3 --system-site-packages civenv
|
|
| 14 |
- - . ./civenv/bin/activate
|
|
| 15 |
- - pip3 install -I mypy
|
|
| 16 |
- - pip3 install -I git+https://dev.gajim.org/gajim/python-nbxmpp.git@master
|
|
| 17 |
- - pip3 install -I pylint==2.4.4
|
|
| 18 |
- - pip3 install -I codespell
|
|
| 19 |
- - mypy -V
|
|
| 20 |
- - mypy gajim
|
|
| 21 |
- - scripts/dev/pylint-ci.sh --jobs=2 gajim
|
|
| 22 |
- - python3 -m unittest discover -s test/no_gui -v
|
|
| 23 |
- - codespell -I codespell.conf --skip="*__pycache__*,gajim/data/icons,gajim/data/sounds,gajim/data/emoticons" gajim
|
|
| 24 |
- - deactivate
|
|
| 25 |
- - rm -rf civenv-master
|
|
| 26 |
- |
|
| 27 |
-run-appdata:
|
|
| 28 |
- stage: test
|
|
| 29 |
- script:
|
|
| 30 |
- - appstream-util validate data/org.gajim.Gajim.appdata.xml.in
|
|
| 31 |
- |
|
| 32 |
-run-build:
|
|
| 33 |
- stage: build
|
|
| 34 |
- script:
|
|
| 35 |
- - python3 setup.py sdist
|
|
| 36 |
- - cd dist
|
|
| 37 |
- - GF=$(basename gajim-* .tar.gz)
|
|
| 38 |
- - gzip -d $GF.tar.gz
|
|
| 39 |
- - mkdir -p $GF/gajim/data/plugins/
|
|
| 40 |
- - curl -O https://ftp.gajim.org/plugins_1/plugin_installer.zip
|
|
| 41 |
- - unzip plugin_installer.zip -d $GF/gajim/data/plugins/
|
|
| 42 |
- - rm plugin_installer.zip
|
|
| 43 |
- - tar -uf $GF.tar $GF
|
|
| 44 |
- - gzip $GF.tar
|
|
| 45 |
- |
|
| 46 |
- artifacts:
|
|
| 47 |
- name: "gajim-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA"
|
|
| 48 |
- expire_in: 1 week
|
|
| 49 |
- paths:
|
|
| 50 |
- - dist/gajim-*.tar.gz
|