Sebastian Dröge
5a9b103f93
docs: Add 0.18 release
2022-01-15 21:40:51 +02:00
Jordan Petridis
d245056e7b
ci: add gtk4 to the image
...
This is a prerequisite to porting the examples to gtk4
2022-01-11 18:26:34 +02:00
Guillaume Desmottes
fc49a0cfd8
ci: build some plugins
...
I'll need those for the tests of a new element I'm writting for
gst-plugins-rs.
2021-10-22 09:38:44 +02:00
Sebastian Dröge
4b8f85c4c6
Regenerate with new gir and gir files
2021-09-19 13:12:58 +00:00
Sebastian Dröge
ce09e333b3
ci: Add libsoup2.4-dev to FDO_DISTRIBUTION_PACKAGES for now
...
It fails building via gst-build because of its sysprof subproject.
2021-09-10 09:43:12 +03:00
Jordan Petridis
2e57783c9f
ci: avoid spawning 2 pipelines for each commit
...
When an MR is open, you can have both a normal and a "detached"
pipeline.
They have different properties, but a detached pipeline is
enough for us and identical to the normal one, so we can avoid
the extra load on the CI.
https://docs.gitlab.com/ee/ci/jobs/job_control.html#avoid-duplicate-pipelines
https://docs.gitlab.com/ee/ci/yaml/index.html#switch-between-branch-pipelines-and-merge-request-pipelines
2021-09-09 06:13:56 +03:00
Jordan Petridis
abfa75b334
ci: update base image to debian 11
...
also update the ci-template sha
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/836 >
2021-08-16 15:25:08 +00:00
Guillaume Gomez
e2264a3f3f
Fix (new) clippy warnings
2021-08-03 10:08:32 +02:00
Sebastian Dröge
7380f18ae7
Revert "ci: namespace should be GStreamer and not gstreamer"
...
This reverts commit c30ea09e4c
.
It was actually wrong.
2021-07-05 13:02:02 +03:00
Jordan Petridis
6275b4ba70
ci: use parentheses for the rules:if statement
...
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/818 >
2021-07-02 16:33:30 +03:00
Sebastian Dröge
c30ea09e4c
ci: namespace should be GStreamer and not gstreamer
2021-07-02 12:08:46 +00:00
Sebastian Dröge
e008923a30
ci: Don't deploy docs on forks
...
It would fail unless the fork also has docs build artefacts for all
previous releases.
Based on https://gitlab.gnome.org/World/Rust/gir-rustdoc/-/merge_requests/10
2021-07-02 14:01:01 +03:00
Sebastian Dröge
7bb9a0df70
ci: Add 0.17 release for the docs
2021-06-25 09:38:19 +03:00
Sebastian Dröge
a94d84e780
Silence/fix various clippy warnings
2021-06-20 10:59:49 +03:00
Marijn Suijten
b8d50a342f
CI: test all features on v1_20
2021-06-04 11:51:01 +02:00
Sophie Herold
e453701b50
Adapt gir-docs -> gir-rustdoc script rename
2021-05-30 12:55:11 +02:00
Marijn Suijten
819d60ec8b
ci: gir-checks: Update submodules before running jobs
...
This might explain the weird diff we were seeing in submodule hashes.
All other jobs checking `git diff` after their operations make sure
they're up-to-date, except the `gir-checks` step.
2021-05-28 17:07:27 +00:00
Sebastian Dröge
b15d8e4c2e
ci: Add more git diff
s to the gir checker job to figure out where it fails
...
It regularly fails when building a pipeline on master with dirty git
submodules, but never seems to fail in MRs.
2021-05-28 16:54:56 +03:00
Sophie Herold
8e05ee28ed
Base pages on gir-docs
2021-05-25 19:04:48 +02:00
Guillaume Gomez
1b1a4aa30b
Add CI check for doc aliases
2021-05-21 12:05:46 +02:00
Marijn Suijten
d203745cfc
ci: Install rustdoc-stripper
in Nightly Rust image
...
This saves two build-jobs from performing the same (expensive!)
compilation+installation over and over again, when it is much cheaper to
cache it in the image instead.
2021-05-05 12:23:40 +02:00
Marijn Suijten
43a4bde600
CI: Ensure all documentation comments are protected against stripping
2021-05-05 12:23:40 +02:00
Marijn Suijten
baa29777a4
ci: Deduplicate clippy linter arguments
2021-04-29 21:36:44 +02:00
Marijn Suijten
3af9de175c
ci: Create index page for the documentation
2021-04-24 10:38:50 +02:00
Marijn Suijten
4be08cc7df
ci: Update gtk-rs docs link to https://gtk-rs.org/gtk-rs/git/docs/
...
This link was falsely pointing to https://gtk-rs.org/gtk-rs/ where no
documentation resides (anymore?).
2021-04-24 10:38:50 +02:00
Marijn Suijten
801b1f2371
ci: Update and embed docs in one step using generator.py
...
`generator.py` can now be used to perform documentation generation and
embedding in one go, simplifying the entire process while at the same
time getting rid of intermediate `docs.md` being checked in to the
repository. For this the CI needs the submodules with `gir` and the
`.gir` files.
2021-04-24 10:38:49 +02:00
Guillaume Desmottes
f00c57cd6f
ci: coverage: ignore build.rs when generating reports
2021-04-23 12:28:54 +00:00
Guillaume Desmottes
c3946eef7c
ci: generate cobertura report directly
...
grcov 0.8.0 now has cobertura support so we no longer need to to export
to lcov format and then convert.
Extract the summary from the generated html so the metric matches the
one from the html report (for some reason the cobertura ones are
differents).
The new gitlab summary parsing regexp is now:
<abbr .*>(\d+.\d+) %<\/abbr>
2021-04-23 12:28:54 +00:00
Guillaume Desmottes
c22a863a57
ci: coverage: don't build examples and tutorials
...
We just want to build and run the tests to generate the coverage
reports.
Workaround for https://github.com/rust-lang/rust/issues/84421
2021-04-23 12:28:54 +00:00
Sebastian Dröge
56b7c1916f
ci: Allow the coverage job to fail
...
It's using the nightly compiler and can easily break every now and then,
like it does now with https://github.com/rust-lang/rust/issues/84421 .
2021-04-22 11:23:45 +03:00
Sebastian Dröge
7d8485612e
ci: Don't allow failure of the cargo outdated
job anymore
...
All dependencies are up to date now and we should try keeping it that
way.
2021-04-22 11:23:45 +03:00
Guillaume Desmottes
48f74d39e8
ci: always run coverage job
...
It should be fixed now.
2021-04-16 09:03:25 +02:00
Bilal Elmoussaoui
b83b8c8675
ci: link to external dependencies instead of building them for docs
2021-03-31 09:06:35 +02:00
Sebastian Dröge
d66394f7c4
ci: Allow clippy::upper_case_acronyms
...
That would otherwise change a lot of API in confusing ways, e.g. RTSP -> Rtsp
and would be inconsistent with the naming in C.
2021-03-25 17:43:54 +02:00
Marijn Suijten
a0358ada40
ci: Always build-test the documentation (dox feature)
...
Quite a few issues slipped in over time because the docs are only
extended with `embed-lgpl-docs` and provided as artifact as part of a
manual action, that isn't clicked often.
2021-03-24 13:43:44 +01:00
Guillaume Desmottes
68253e1c28
ci: run 'pages' job with nightly image
...
We need nightly to generate the doc.
2021-01-27 18:55:03 +02:00
Guillaume Desmottes
beee75dabe
ci: make coverage job manual
...
It's broken atm, likely because of https://github.com/mozilla/grcov/issues/555
2021-01-22 09:09:41 +01:00
Guillaume Desmottes
01e1cfce54
ci: add coverage job
...
Uses the new llvm source-base coverage from nightly to generate coverage
reports:
- full html report as artifact
- cobertura report for gitlab MR integration
- output coverage summary for gitlab parsing
Here is the regexp to set in gitlab as "Test coverage parsing":
\s*lines\.*:\s*([\d\.]+%)
Ignore sys crates when calculating coverage are those are fully
generated anyway.
Resources:
- https://github.com/marco-c/rust-code-coverage-sample
- https://github.com/mozilla/grcov/issues/468#issuecomment-691615245
- https://www.greycastle.se/how-to-show-flutter-test-coverage-in-gitlab-ci/
2021-01-11 15:41:21 +01:00
Marijn Suijten
9dc110be07
gitlab-ci: Do not ignore un-violated clippy lints
...
redundant_pattern_matching does not seem to exist (perhaps renamed to
if_let_redundant_pattern_matching), and single_match + cast_lossless do
not seem to be violated (anymore?).
2021-01-08 11:01:02 +01:00
Marijn Suijten
7ed20090d1
Fix clippy::field_reassign_with_defaults instead of ignoring it
...
Fixes: fc2d7fc4
("ci: Add some more ignored lints to the clippy configuration")
2021-01-08 11:01:02 +01:00
Sebastian Dröge
fc2d7fc4d0
ci: Add some more ignored lints to the clippy configuration
2020-12-31 16:54:33 +02:00
Marijn Suijten
8549046994
CI: Test v1_18 feature of egl/wayland/x11 crates
...
In 55badab1
versioning features were added to these crates after all
(even though they are not used in the actual code, merely to forward the
feature flag to dependencies like `gst` and `gst-gl`). They were omitted
at first and have these special cases in the CI, but those are not
necessary anymore.
Fixes: b2f3363c
("CI: Update to restructured GL EGL/Wayland/X11 layout")
2020-12-19 14:15:27 +00:00
Marijn Suijten
6fe1b26a10
CI: Gir_*.toml files have moved to <crate>/Gir.toml
...
See f657a56947
2020-11-28 11:15:22 +01:00
Marijn Suijten
b2f3363c8c
CI: Update to restructured GL EGL/Wayland/X11 layout
2020-11-28 11:15:22 +01:00
Marijn Suijten
3129027b9d
CI: Do not enable all features in .cargo test sys
...
This solves build breakage when dox is enabled on non-nightly targets,
which uses the experimental doc_cfg feature.
2020-11-19 17:21:30 +01:00
Marijn Suijten
2a169e0fdd
CI: Build docs on nightly for feature(doc_cfg)
...
The doc_cfg feature displays cfg requirements for a given symbol
directly in the documentation.
2020-11-19 16:39:31 +01:00
Jordan Petridis
3bab13b228
ci: move f.do_distro_{tag, exec} vars to the jobs
...
The gitlab parser will only expand the variables once,
which make it impossible to abstract over the rust
version in a nice way. A hacky workaround is to
duplicate some things and get rid of the RUST_VERSION
var to avoid the issue.
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/618#note_679774
2020-11-05 16:55:29 +00:00
Sebastian Dröge
773d92f9f5
ci: Store stable and minimum supported Rust version (MSRV) in template variables
...
And don't make the actual version numbers part of the jobs.
2020-11-05 16:55:29 +00:00
Sebastian Dröge
918a30a60b
ci: Disable gstreamer-gl-sys tests for now
...
This requires moving over to splitting the bindings between GL, EGL,
etc.
2020-11-01 10:26:33 +02:00
Sebastian Dröge
bdcb133fc2
ci: Run sys tests with --all-features and only build --all-features
...
They're fully additive so there's no point in building with default
features too.
For the non-sys bindings we might want to consider building with default
features though.
2020-11-01 10:09:57 +02:00