gitlab-ci: limit the automatic CI to master and MRs
authorEric Engestrom <eric.engestrom@intel.com>
Mon, 18 Feb 2019 19:01:28 +0000 (19:01 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 19 Feb 2019 16:57:28 +0000 (16:57 +0000)
Runs on random other branches (stables RCs, personal forks) can still be
triggered manually via the web interface, or an app using the API.

This should massively help with the current voracious state of our CI.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
.gitlab-ci.yml

index 7e4a5f1d8d6d8e1b462d66007ed4a01a38ad3343..a3f56fa4d4dbe8a7740ab3817d1fb40eba7924cf 100644 (file)
@@ -63,6 +63,9 @@ containers:ubuntu:
 .build:
   image: $UBUNTU_IMAGE
   stage: build+test
+  only:
+    - master
+    - merge_requests
   artifacts:
     when: on_failure
     untracked: true