[v2,04/12] gitlab-ci.yml: Run dev tests set on push

Message ID 20230303144727.481716-5-amikan@ilbers.de
State Accepted, archived
Headers show
Series Next avocado improvements​ | expand

Commit Message

Anton Mikanovich March 3, 2023, 2:47 p.m. UTC
From: Uladzimir Bely <ubely@ilbers.de>

This makes only shorter "dev" set of tests run in Gitlab on push.

Other tags, "fast" and "full" can be run by schedule.

Signed-off-by: Uladzimir Bely <ubely@ilbers.de>
---
 .gitlab-ci.yml | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

Patch

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index d1e8249..f9235fc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -22,12 +22,19 @@  variables:
     when: always
     expire_in: 1 week
 
-fast-ci:
+dev-ci:
   <<: *common-build
   except:
     - schedules
   script:
-    - scripts/ci_build.sh -q -f
+    - scripts/ci_build.sh -q -T dev
+
+fast-ci:
+  <<: *common-build
+  only:
+    - schedules
+  script:
+    - scripts/ci_build.sh -q -T fast
 
 full-ci:
   <<: *common-build
@@ -37,7 +44,7 @@  full-ci:
     - PREVIOUS_SHA="$(cat .CI_COMMIT_SHA || true)"
     - if [ "$CI_COMMIT_SHA" != "$PREVIOUS_SHA" ]; then
           echo "$CI_COMMIT_SHA" > .CI_COMMIT_SHA;
-          scripts/ci_build.sh -q;
+          scripts/ci_build.sh -q -T full;
       fi
   cache:
     key: "$CI_COMMIT_REF_SLUG"