summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-04-08 20:22:17 +0300
committerAndrei Karas <akaras@inbox.ru>2016-04-08 20:22:17 +0300
commit1416f3c4a275189c5969671c500f93d6f85e480d (patch)
tree69b1a82eafba414ba5828c32f6021140ef8859f5
parent369051e78b7e278afb15c35e69b67da0620c3e21 (diff)
downloadclientdata-1416f3c4a275189c5969671c500f93d6f85e480d.tar.gz
clientdata-1416f3c4a275189c5969671c500f93d6f85e480d.tar.bz2
clientdata-1416f3c4a275189c5969671c500f93d6f85e480d.tar.xz
clientdata-1416f3c4a275189c5969671c500f93d6f85e480d.zip
add cache in .gitlab-ci.yml. Disable irc report for now.
-rw-r--r--.gitlab-ci.yml25
1 files changed, 23 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4d651d60..3b9264f4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,10 +11,17 @@ pages:
- cd ..
- rm -rf tools
- git clone --depth 1 https://gitlab.com/evol/evol-tools.git tools
+ - mkdir .shared
+ - echo >.shared/error.log
+ - echo ${CI_BUILD_ID} >.shared/buildid.log
- ./tools/gitlab-ci/clientdata.sh
artifacts:
paths:
- public
+ cache:
+ key: "$CI_BUILD_REF_NAME"
+ paths:
+ - .shared
only:
- master
@@ -26,8 +33,15 @@ ok_job:
- 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"
+# - ./tools/gitlab-ci/completeaction.sh "Build success. See https://gitlab.com/evol/clientdata/builds/$(tools/.shared/buildid.log)"
+ - rm -rf .shared
when: on_success
+ cache:
+ key: "$CI_BUILD_REF_NAME"
+ paths:
+ - .shared
+ dependencies:
+ - pages
only:
- master
@@ -39,7 +53,14 @@ fail_job:
- 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"
+# - ./tools/gitlab-ci/completeaction.sh "Build failed. See https://gitlab.com/evol/clientdata/builds/$(tools/.shared/buildid.log)"
+ - rm -rf .shared
when: on_failure
+ cache:
+ key: "$CI_BUILD_REF_NAME"
+ paths:
+ - .shared
+ dependencies:
+ - pages
only:
- master