Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2017-08-09 23:24:36 +0300
committerYann Leboulanger <asterix@lagaule.org>2017-08-09 23:24:36 +0300
commitfa993335a2c1d6928cf5261fb8d1d4b3f47eb18e (patch)
treec0af06a88e095fc85ba82a676ff47bfdba032989 /.gitlab-ci.yml
parentc57af6dade707439d6c87ddbf1502b89c32a7d0a (diff)
parentc66669ccf3249f01088a676b418837680daf69d5 (diff)
Merge branch 'master' into 'master'
run tests in gitlab-ci on every commits See merge request !114
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml42
1 files changed, 42 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 000000000..466f5434a
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,42 @@
+before_script:
+ - sudo apt-get update -qq && sudo apt-get install -y -qq libtool pkg-config $(apt-cache depends gajim-default-nightly | grep Depends | sed "s/.*ends:\ //" | tr '\n' ' ')
+ - sudo apt-get build-dep -y -qq gajim-default-nightly
+
+stages:
+ - test
+ - build
+
+run-test:
+ stage: test
+ script:
+ - ./autogen.sh
+ - make test_nogui
+
+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
+ - scp $FN.gz panoramix:/var/www/gajim/downloads/snap/ci/gajim-default-$CI_COMMIT_SHA.tar.gz
+
+ artifacts:
+ name: "gajim-default-$CI_COMMIT_REF_NAME-$CI_COMMIT_SHA"
+ expire_in: 1 week
+ paths:
+ - gajim-default-2???-??-??.tar.gz