From 01e723b5810dbacddcc2512475a8f58c92dfaf92 Mon Sep 17 00:00:00 2001
From: Jakob Maljaars <jakob.maljaars@stcorp.nl>
Date: Tue, 30 Jun 2020 15:14:29 +0200
Subject: [PATCH] Resolve "Schedule OSKAR comparison only once a week"

---
 .gitlab-ci.yml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 90f73fb8..fe889e18 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,6 +21,8 @@ build-base:
     - docker push $CI_REGISTRY_IMAGE:base
 
 clang-format:
+  except:
+    - schedules
   stage: format-and-test
   image: $CI_REGISTRY_IMAGE:base
   before_script:
@@ -33,6 +35,8 @@ clang-format:
 test-and-coverage:
   stage: format-and-test
   image: $CI_REGISTRY_IMAGE:base
+  except:
+    - schedules
   dependencies: 
     - build-base
   before_script:
@@ -63,6 +67,8 @@ build-everybeam:
 build-oskar:
   stage: oskar-comparison
   image: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA
+  only:
+    - schedules
   dependencies:
     - build-everybeam
   before_script:
@@ -83,6 +89,8 @@ build-oskar:
 
 build-doc:
   stage: build-doc
+  except:
+    - schedules
   script:
   - >
     docker run
@@ -98,6 +106,8 @@ build-doc:
 
 deploy-doc:
   stage: deploy-doc
+  except:
+    - schedules
   before_script:
     - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
     - eval $(ssh-agent -s)
@@ -159,6 +169,8 @@ deploy-doc:
 deploy:
   variables:
     GIT_STRATEGY: none
+  except:
+    - schedules
   only:
     - master
   stage: deploy
-- 
GitLab