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

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2017-08-11 16:56:19 +0300
committerYann Leboulanger <asterix@lagaule.org>2017-08-12 15:19:16 +0300
commit221b0b18c0f3ade2685e8aa11073595aa3963e5b (patch)
tree9ad4061176502924e91fede9f4c0b476033f407b /.gitlab-ci.yml
parentf4c0ef02eea1091d483aa486222e2477931f64d9 (diff)
add .gitlab-ci.yml file
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000..da648d8
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,25 @@
+before_script:
+ - sudo apt-get update -qq && sudo apt-get build-dep -y -qq python-nbxmpp-nightly
+
+stages:
+ - test
+ - build
+
+run-test:
+ stage: test
+ script:
+ - ./test/runtests.py
+
+run-build:
+ stage: build
+ script:
+ - rm -rf dist
+ - export FN="nbxmpp-"$(date +%F)
+ - python setup.py sdist
+ - scp dist/nbxmpp-*.tar.gz panoramix:/var/www/gajim/downloads/snap/ci/$FN-$CI_COMMIT_SHA.tar.gz
+
+ artifacts:
+ name: "nbxmpp-$CI_COMMIT_SHA"
+ expire_in: 1 week
+ paths:
+ - dist/nbxmpp-*.tar.gz