mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-26 05:21:00 +00:00
ci: include gst-ci
- Use gst-ci's stages instead of our own - Override GIT_STRATEGY for Rust only builds as gst-ci relies on gst-build subprojects by default. First step merging our Rust CI with gst-ci. Once this is merged we'll enable Rust in gst-ci builds and so will guard gst-plugins-rs MR against breaking gst-build.
This commit is contained in:
parent
13d4029f70
commit
e73e27cda4
1 changed files with 13 additions and 8 deletions
|
@ -1,7 +1,4 @@
|
|||
stages:
|
||||
- "lint"
|
||||
- "test"
|
||||
- "extras"
|
||||
include: "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/master/gitlab/ci_template.yml"
|
||||
|
||||
.tarball_setup:
|
||||
variables:
|
||||
|
@ -61,7 +58,9 @@ stages:
|
|||
|
||||
.cargo test:
|
||||
extends: '.tarball_setup'
|
||||
stage: "test"
|
||||
stage: "build"
|
||||
variables:
|
||||
GIT_STRATEGY: 'fetch'
|
||||
script:
|
||||
- rustc --version
|
||||
- cargo build --color=always --all
|
||||
|
@ -90,7 +89,9 @@ test nightly:
|
|||
|
||||
rustfmt:
|
||||
image: "rust:slim-buster"
|
||||
stage: "lint"
|
||||
stage: "preparation"
|
||||
variables:
|
||||
GIT_STRATEGY: 'fetch'
|
||||
script:
|
||||
- rustup component add rustfmt
|
||||
- cargo fmt --version
|
||||
|
@ -99,7 +100,9 @@ rustfmt:
|
|||
clippy:
|
||||
extends: '.tarball_setup'
|
||||
image: "rust:slim-buster"
|
||||
stage: 'extras'
|
||||
stage: 'test'
|
||||
variables:
|
||||
GIT_STRATEGY: 'fetch'
|
||||
script:
|
||||
- rustup component add clippy-preview
|
||||
- cargo clippy --color=always --all --all-features --all-targets -- -A clippy::redundant_pattern_matching -A clippy::single_match -A clippy::cast_lossless
|
||||
|
@ -107,7 +110,9 @@ clippy:
|
|||
audit:
|
||||
extends: '.tarball_setup'
|
||||
image: "rust:slim-buster"
|
||||
stage: 'extras'
|
||||
stage: 'test'
|
||||
variables:
|
||||
GIT_STRATEGY: 'fetch'
|
||||
only:
|
||||
- schedules
|
||||
script:
|
||||
|
|
Loading…
Reference in a new issue