From 362bc8fd3c8828efd63d55e9cc922d8cffbbbc1c Mon Sep 17 00:00:00 2001
From: "alexander.kravchenko" <alexander.kravchenko@demlabs.net>
Date: Mon, 26 Oct 2020 22:33:16 +0500
Subject: [PATCH] Corrected dashboard build rules

---
 .gitlab-ci.yml | 115 ++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 113 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 636e1d4..c28a5ab 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,13 +1,124 @@
+#before_build:
+    
+
 stages:
     - prepare
     - build
     - test
+    - deploy
 
 variables:
     GIT_SUBMODULE_STRATEGY: normal
 
-cellframe-dashboard-schedule:
+# Prepare
+#
+#
+
+dapchain-client-test:
     stage: build
     tags:
-    - cellframe-dashboard
+     - dapchain-client
+    except:
+     - merge_request
+     - develop
+     - master
+     - /^pubtest.*$/
+     - /^release.*$/
+    script: ~/production/integration/gitlab-CI/build_test_handler.sh cellframe-dashboard
+
+#dapchain-client-merge-request-windows:
+#    stage: build
+#    tags:
+#     - dapchain-client
+#    only: [merge_requests]
+#    except:
+#      variables:
+#        - $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != "master"
+#    script: ~/production/integration/gitlab-CI/build_all_handler.sh cellframe-dashboard windows
+
+dapchain-client-merge-request-linux:
+    stage: build
+    tags:
+     - dapchain-client
+    only: [merge_requests]
+    except:
+      variables:
+        - $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != "master"
+        - $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != "/^release.*$/"
+    script: ~/production/integration/gitlab-CI/build_all_handler.sh cellframe-dashboard linux
+
+#dapchain-client-merge-request-mac:
+#    stage: build
+#    tags:
+#     - dapchain-client
+#    only: [merge_requests]
+#    except:
+#      variables:
+#        - $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != "master"
+#    script: ~/production/integration/gitlab-CI/build_all_handler.sh cellframe-dashboard mac
+
+#dapchain-client-merge-request-android:
+#    stage: build
+#    tags:
+#     - dapchain-client
+#    only: [merge_requests]
+#    except:
+#      variables:
+#        - $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != "master"
+#    script: ~/production/integration/gitlab-CI/build_all_handler.sh cellframe-dashboard android
+
+dapchain-client-schedule:
+    stage: build
+    tags: 
+     - dapchain-client
+    only:
+     - schedules
     script: ~/production/integration/gitlab-CI/build_all_handler.sh cellframe-dashboard
+
+dapchain-client_linux:
+    stage: build
+    tags:
+     - dapchain-client
+    only:
+     - master
+     - /^release.*$/
+     - /^pubtest.*$/
+    script: ~/production/integration/gitlab-CI/build_all_handler.sh cellframe-dashboard linux
+
+#dapchain-client_mac:
+#    stage: build
+#    tags:
+#     - dapchain-client
+#    only:
+#     - master
+#     - /^release.*$/
+#     - /^pubtest.*$/
+#     - develop
+#    script: ~/production/integration/gitlab-CI/build_all_handler.sh cellframe-dashboard mac
+
+#dapchain-client_android:
+#    stage: build
+#    tags:
+#     - dapchain-client
+#    only:
+#     - master
+#     - /^release.*$/
+#     - /^pubtest.*$/
+#    script: ~/production/integration/gitlab-CI/build_all_handler.sh cellframe-dashboard android
+
+#dapchain-client_windows:
+#    stage: build
+#    tags:
+#     - dapchain-client
+#    only:
+#     - /^pubtest.*$/
+#     - /^release.*$/
+#    except:
+#     - master
+#    script: ~/production/integration/gitlab-CI/build_all_handler.sh cellframe-dashboard windows
+
+# Test
+# run unit-tests
+
+# Deploy
+# cp to builds folder
-- 
GitLab