mirror of
https://gitlab.freedesktop.org/dabrain34/GstPipelineStudio.git
synced 2024-11-25 02:21:00 +00:00
ci: add gitlab ci definition
This commit is contained in:
parent
a15c9c7353
commit
71576eae4e
1 changed files with 76 additions and 0 deletions
76
.gitlab-ci.yml
Normal file
76
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,76 @@
|
|||
include:
|
||||
- project: "freedesktop/ci-templates" # the project to include from
|
||||
ref: "34f4ade99434043f88e164933f570301fd18b125" # git ref of that project
|
||||
file: "/templates/fedora.yml" # the actual file to include
|
||||
|
||||
stages:
|
||||
- prepare
|
||||
- lint
|
||||
- test
|
||||
- extras
|
||||
|
||||
variables:
|
||||
FDO_UPSTREAM_REPO: "dabrain34/GstPipelineStudio"
|
||||
|
||||
# Version and tag for our current container
|
||||
.fedora:
|
||||
variables:
|
||||
FDO_DISTRIBUTION_VERSION: "35"
|
||||
# Update this to trigger a container rebuild
|
||||
FDO_DISTRIBUTION_TAG: "2021-12-15.0"
|
||||
|
||||
build-fedora-container:
|
||||
extends:
|
||||
- .fedora # our template job above
|
||||
- .fdo.container-build@fedora@x86_64 # the CI template
|
||||
stage: prepare
|
||||
variables:
|
||||
# clang-devel: required by rust bindgen
|
||||
FDO_DISTRIBUTION_PACKAGES: >-
|
||||
rust
|
||||
cargo
|
||||
rustfmt
|
||||
clippy
|
||||
gtk4-devel
|
||||
clang-devel
|
||||
gstreamer1-devel
|
||||
gstreamer1-plugins-base-devel
|
||||
|
||||
rustfmt:
|
||||
extends:
|
||||
- .fedora
|
||||
- .fdo.distribution-image@fedora
|
||||
stage: lint
|
||||
script:
|
||||
- cargo fmt --version
|
||||
- cargo fmt -- --color=always --check
|
||||
|
||||
test-stable:
|
||||
extends:
|
||||
- .fedora
|
||||
- .fdo.distribution-image@fedora
|
||||
stage: test
|
||||
script:
|
||||
- rustc --version
|
||||
- cargo build --color=always --all-targets
|
||||
- cargo test --color=always
|
||||
|
||||
rustdoc:
|
||||
extends:
|
||||
- .fedora
|
||||
- .fdo.distribution-image@fedora
|
||||
stage: extras
|
||||
variables:
|
||||
RUSTDOCFLAGS: "-Dwarnings"
|
||||
script:
|
||||
- rustdoc --version
|
||||
- cargo doc --no-deps
|
||||
|
||||
clippy:
|
||||
extends:
|
||||
- .fedora
|
||||
- .fdo.distribution-image@fedora
|
||||
stage: extras
|
||||
script:
|
||||
- cargo clippy --version
|
||||
- cargo clippy --color=always --all-targets -- -D warnings
|
Loading…
Reference in a new issue