2017-08-09 21:12:15 +02:00
|
|
|
before_script:
|
2018-09-27 16:03:08 +02:00
|
|
|
- sudo apt-get update -qq && sudo apt-get install -y -qq libtool pkg-config python3-openssl gir1.2-gtk-3.0 python3-gi python3-nbxmpp-nightly python3-cairo python3-pip
|
2017-08-09 21:12:15 +02:00
|
|
|
- sudo apt-get build-dep -y -qq gajim-default-nightly
|
2018-09-27 16:03:08 +02:00
|
|
|
- sudo pip3 install pylint==2.1.1
|
2017-08-09 21:12:15 +02:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- build
|
|
|
|
|
|
|
|
run-test:
|
|
|
|
stage: test
|
|
|
|
script:
|
2018-11-17 11:19:33 +01:00
|
|
|
- python3 setup.py test -s test.no_gui
|
2017-08-09 21:12:15 +02:00
|
|
|
|
2018-09-11 22:46:57 +02:00
|
|
|
run-mypy:
|
|
|
|
stage: test
|
|
|
|
script:
|
2018-09-21 23:56:56 +02:00
|
|
|
- mypy gajim
|
2018-09-11 22:46:57 +02:00
|
|
|
|
2017-08-23 23:07:05 +02:00
|
|
|
run-pylint:
|
|
|
|
stage: test
|
|
|
|
script:
|
2018-09-27 16:03:08 +02:00
|
|
|
- pylint3 --version
|
|
|
|
- pylint --version
|
|
|
|
- scripts/dev/pylint-ci.sh --jobs=2 gajim
|
2017-08-23 23:07:05 +02:00
|
|
|
|
2018-10-25 11:59:41 +02:00
|
|
|
run-appdata:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- appstream-util validate data/org.gajim.Gajim.appdata.xml.in
|
|
|
|
|
2017-08-09 21:12:15 +02:00
|
|
|
run-build:
|
|
|
|
stage: build
|
|
|
|
script:
|
2017-09-05 00:16:09 +02:00
|
|
|
- python3 setup.py sdist
|
|
|
|
- cd dist
|
2017-08-09 21:12:15 +02:00
|
|
|
- export FN="gajim-default-"$(date +%F)".tar"
|
|
|
|
- mv gajim-*.tar.gz $FN.gz
|
|
|
|
- mkdir tmp_add_plugins
|
|
|
|
- mv $FN.gz tmp_add_plugins/
|
|
|
|
- cd tmp_add_plugins/
|
|
|
|
- tar xzf $FN.gz
|
|
|
|
- rm $FN.gz
|
|
|
|
- export GF=$(find . -maxdepth 1 -type d -name 'gajim-*')
|
2017-09-22 21:34:06 +02:00
|
|
|
- mkdir -p $GF/gajim/data/plugins/
|
|
|
|
- cd $GF/gajim/data/plugins/
|
2017-08-09 21:12:15 +02:00
|
|
|
- curl -O https://ftp.gajim.org/plugins_1/plugin_installer.zip
|
|
|
|
- unzip plugin_installer.zip
|
|
|
|
- rm plugin_installer.zip
|
2017-09-22 21:34:06 +02:00
|
|
|
- cd ../../../..
|
2017-08-09 21:12:15 +02:00
|
|
|
- tar czf ../$FN.gz gajim-*
|
|
|
|
- cd ..
|
|
|
|
- rm -rf tmp_add_plugins
|
2017-08-09 22:21:48 +02:00
|
|
|
- scp $FN.gz panoramix:/var/www/gajim/downloads/snap/ci/gajim-default-$CI_COMMIT_SHA.tar.gz
|
2017-08-09 21:12:15 +02:00
|
|
|
|
|
|
|
artifacts:
|
|
|
|
name: "gajim-default-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA"
|
|
|
|
expire_in: 1 week
|
|
|
|
paths:
|
|
|
|
- gajim-default-2???-??-??.tar.gz
|