Commit 21ea5a26 authored by Ruben ten Hove's avatar Ruben ten Hove
Browse files

ci: only run tests when in merge request

parent e1decf85
Loading
Loading
Loading
Loading
+26 −13
Original line number Diff line number Diff line
@@ -40,7 +40,8 @@ jobs:c:
      - local: tests/jobs/c.yml
    strategy: depend
  rules:
    - changes:
    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
      changes:
        - c/**/*

jobs:kaniko:
@@ -50,7 +51,8 @@ jobs:kaniko:
      - local: tests/jobs/kaniko.yml
    strategy: depend
  rules:
    - changes:
    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
      changes:
        - container/**/*

jobs:buildah:
@@ -60,7 +62,8 @@ jobs:buildah:
      - local: tests/jobs/buildah.yml
    strategy: depend
  rules:
    - changes:
    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
      changes:
        - container/**/*

jobs:docker-arm64:
@@ -70,7 +73,8 @@ jobs:docker-arm64:
      - local: tests/jobs/docker-arm64.yml
    strategy: depend
  rules:
    - changes:
    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
      changes:
        - container/**/*

jobs:docs:
@@ -80,7 +84,8 @@ jobs:docs:
      - local: tests/jobs/docs.yml
    strategy: depend
  rules:
    - changes:
    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
      changes:
        - docs/**/*

jobs:python:
@@ -90,7 +95,8 @@ jobs:python:
      - local: tests/jobs/python.yml
    strategy: depend
  rules:
    - changes:
    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
      changes:
        - python/**/*

jobs:python:old:
@@ -102,7 +108,8 @@ jobs:python:old:
      - local: tests/jobs/python.yml
    strategy: depend
  rules:
    - changes:
    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
      changes:
        - python/**/*

jobs:python:custom-image:
@@ -112,7 +119,8 @@ jobs:python:custom-image:
      - local: tests/jobs/python-custom-image.yml
    strategy: depend
  rules:
    - changes:
    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
      changes:
        - python/**/*

# child pipelines to test our off-the-shelf pipelines
@@ -123,7 +131,8 @@ pipelines:c:
      - local: tests/pipelines/c.yml
    strategy: depend
  rules:
    - changes:
    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
      changes:
        - c/**/*

pipelines:python:
@@ -133,7 +142,8 @@ pipelines:python:
      - local: tests/pipelines/python.yml
    strategy: depend
  rules:
    - changes:
    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
      changes:
        - python/**/*

pipelines:container:polyrepo:
@@ -143,7 +153,8 @@ pipelines:container:polyrepo:
      - local: tests/pipelines/container/polyrepo.yml
    strategy: depend
  rules:
    - changes:
    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
      changes:
        - container/**/*

pipelines:container:monorepo:
@@ -153,7 +164,8 @@ pipelines:container:monorepo:
      - local: tests/pipelines/container/monorepo.yml
    strategy: depend
  rules:
    - changes:
    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
      changes:
        - container/**/*

pipelines:container:python:
@@ -163,6 +175,7 @@ pipelines:container:python:
      - local: tests/pipelines/container/python.yml
    strategy: depend
  rules:
    - changes:
    - if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
      changes:
        - container/**/*
        - python/**/*