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:
Guillaume Desmottes 2020-01-02 11:42:21 +05:30
parent 13d4029f70
commit e73e27cda4

View file

@ -1,7 +1,4 @@
stages: include: "https://gitlab.freedesktop.org/gstreamer/gst-ci/raw/master/gitlab/ci_template.yml"
- "lint"
- "test"
- "extras"
.tarball_setup: .tarball_setup:
variables: variables:
@ -61,7 +58,9 @@ stages:
.cargo test: .cargo test:
extends: '.tarball_setup' extends: '.tarball_setup'
stage: "test" stage: "build"
variables:
GIT_STRATEGY: 'fetch'
script: script:
- rustc --version - rustc --version
- cargo build --color=always --all - cargo build --color=always --all
@ -90,7 +89,9 @@ test nightly:
rustfmt: rustfmt:
image: "rust:slim-buster" image: "rust:slim-buster"
stage: "lint" stage: "preparation"
variables:
GIT_STRATEGY: 'fetch'
script: script:
- rustup component add rustfmt - rustup component add rustfmt
- cargo fmt --version - cargo fmt --version
@ -99,7 +100,9 @@ rustfmt:
clippy: clippy:
extends: '.tarball_setup' extends: '.tarball_setup'
image: "rust:slim-buster" image: "rust:slim-buster"
stage: 'extras' stage: 'test'
variables:
GIT_STRATEGY: 'fetch'
script: script:
- rustup component add clippy-preview - 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 - 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: audit:
extends: '.tarball_setup' extends: '.tarball_setup'
image: "rust:slim-buster" image: "rust:slim-buster"
stage: 'extras' stage: 'test'
variables:
GIT_STRATEGY: 'fetch'
only: only:
- schedules - schedules
script: script: