GitlabCI add rules to trigger pipeline on merge requests

This commit is contained in:
Gioacchino Mazzurco 2020-04-07 20:42:37 +02:00
parent 31424cd2f0
commit 463d46a26f
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -3,9 +3,10 @@ image: docker:stable
services:
- docker:stable-dind
stages:
- build
- test
workflow:
rules:
- if: $CI_MERGE_REQUEST_ID
- if: $CI_COMMIT_BRANCH
build-and-test:
script: