Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
johnbatty
rust-gitlab
Commits
2a04b2d6
Commit
2a04b2d6
authored
Dec 11, 2019
by
Ben Boeckel
⛰
Browse files
gitlab-ci: only run CI for MRs and main branches
parent
be2b4ddf
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
2a04b2d6
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment