2017-08-09 21:12:15 +02:00
|
|
|
before_script:
|
2017-08-19 23:13:47 +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
|
2017-08-09 21:12:15 +02:00
|
|
|
- sudo apt-get build-dep -y -qq gajim-default-nightly
|
|
|
|
|
|
|
|
stages:
|
|
|
|
- test
|
|
|
|
- build
|
|
|
|
|
|
|
|
run-test:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- ./autogen.sh
|
2017-08-09 22:09:01 +02:00
|
|
|
- make test_nogui
|
2017-08-09 21:12:15 +02:00
|
|
|
|
|
|
|
run-build:
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- ./autogen.sh
|
|
|
|
- make dist
|
|
|
|
- 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-*')
|
|
|
|
- cd $GF/plugins/
|
|
|
|
- curl -O https://ftp.gajim.org/plugins_1/plugin_installer.zip
|
|
|
|
- unzip plugin_installer.zip
|
|
|
|
- rm plugin_installer.zip
|
|
|
|
- cd ../..
|
|
|
|
- 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
|