Commit 2a04b2d6 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

gitlab-ci: only run CI for MRs and main branches

parent be2b4ddf
......@@ -7,6 +7,11 @@ before_script:
- rustc --version
- cargo --version
.only_settings: &only_settings
- merge_requests
- branches@utils/rust-git-workarea
- tags@utils/rust-git-workarea
.cargo_update: &cargo_update
- cargo generate-lockfile $GENERATE_LOCKFILE_ARGS
- cargo fetch --locked
......@@ -53,6 +58,7 @@ before_script:
.cargo_fetch_job: &cargo_fetch_job
stage: prepare
only: *only_settings
tags:
- build
- docker
......@@ -74,6 +80,7 @@ before_script:
.cargo_clippy_job: &cargo_clippy_job
stage: build
only: *only_settings
tags:
- build
- docker
......@@ -84,6 +91,7 @@ before_script:
.cargo_build_job: &cargo_build_job
stage: build
only: *only_settings
tags:
- build
- docker
......@@ -101,6 +109,7 @@ before_script:
.cargo_test_job: &cargo_test_job
stage: test
only: *only_settings
tags:
- build
- docker
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment