summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-08 18:46:56 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-08 18:46:56 +0300
commit369051e78b7e278afb15c35e69b67da0620c3e21 (patch)
treeef24cd16f7aa89ac10bf611251838528c3236c3f
parent95b92d49303a3cafd95d5c57096fbdf96854549f (diff)
downloadclientdata-369051e78b7e278afb15c35e69b67da0620c3e21.tar.gz
clientdata-369051e78b7e278afb15c35e69b67da0620c3e21.tar.bz2
clientdata-369051e78b7e278afb15c35e69b67da0620c3e21.tar.xz
clientdata-369051e78b7e278afb15c35e69b67da0620c3e21.zip
add .gitlab-ci.yml
-rw-r--r--.gitlab-ci.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 00000000..4d651d60
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,45 @@
+stages:
+- deploy
+- fail
+- ok
+
+pages:
+ stage: deploy
+ script:
+ - apt-get update
+ - apt-get -y -qq install git-core zip gcc zlib1g-dev ca-certificates libxml2-utils
+ - cd ..
+ - rm -rf tools
+ - git clone --depth 1 https://gitlab.com/evol/evol-tools.git tools
+ - ./tools/gitlab-ci/clientdata.sh
+ artifacts:
+ paths:
+ - public
+ only:
+ - master
+
+ok_job:
+ stage: ok
+ script:
+ - apt-get update
+ - apt-get -y -qq install ii psmisc
+ - cd ..
+ - rm -rf tools
+ - git clone --depth 1 https://gitlab.com/evol/evol-tools.git tools
+ - ./tools/gitlab-ci/completeaction.sh "Build success. See https://gitlab.com/evol/clientdata/builds"
+ when: on_success
+ only:
+ - master
+
+fail_job:
+ stage: fail
+ script:
+ - apt-get update
+ - apt-get -y -qq install ii psmisc
+ - cd ..
+ - rm -rf tools
+ - git clone --depth 1 https://gitlab.com/evol/evol-tools.git tools
+ - ./tools/gitlab-ci/completeaction.sh "Build failed. See https://gitlab.com/evol/clientdata/builds"
+ when: on_failure
+ only:
+ - master