fwupd/contrib/ci
Richard Hughes 173d389fa5 Register the SoupSession gtype when required
This allows old gnome-software clients to work with new fwupd versions.
2020-11-19 19:39:37 +00:00
..
abidiff.suppr trivial: Add all the _LAST enums that shouldn't be checked for ABI 2019-11-01 08:16:18 -05:00
arch.sh contrib/ci: switch TPM simulator from ibmswtpm to swtpm 2020-10-28 07:50:11 -05:00
build_windows.sh Register the SoupSession gtype when required 2020-11-19 19:39:37 +00:00
centos.sh Install the installed tests 2020-08-28 10:10:43 -05:00
check_missing_translations.sh Catch missing translation files in POTFILES.in 2018-06-29 06:43:06 +01:00
check-abi Verify we don't break the ABI 2019-08-01 10:47:49 -05:00
debian_s390x.sh msr: Add a new plugin to detect the Intel DCI state 2020-07-16 20:13:06 +01:00
debian.sh trivial: Fix Debian CI failure 2020-11-02 14:22:37 +00:00
dependencies.xml trivial: add libsoup in for ABI checking 2020-11-19 19:39:37 +00:00
Dockerfile-arch.in trivial: Github actions: Split up container creation 2020-11-18 06:47:57 -06:00
Dockerfile-debian.in trivial: Github actions: Split up container creation 2020-11-18 06:47:57 -06:00
Dockerfile-fedora.in trivial: Github actions: Split up container creation 2020-11-18 06:47:57 -06:00
Dockerfile-snap.in trivial: snap: pull from edge channel to build 2019-02-25 21:27:18 -06:00
Dockerfile-ubuntu.in trivial: Github actions: Split up container creation 2020-11-18 06:47:57 -06:00
fedora.sh Disable gusb:tests 2020-08-28 10:48:03 -07:00
flatpak.py Use black to format python source in a consistent manner 2020-04-13 23:06:30 +01:00
generate_debian.py Use black to format python source in a consistent manner 2020-04-13 23:06:30 +01:00
generate_dependencies.py Use black to format python source in a consistent manner 2020-04-13 23:06:30 +01:00
generate_docker.py trivial: Github actions: Split up container creation 2020-11-18 06:47:57 -06:00
generate_news.py Generate a body for github releases (Fixes: #2034) 2020-04-28 09:56:02 -05:00
get_test_firmware.sh Install the installed tests 2020-08-28 10:10:43 -05:00
README.md ci: use standalone script to generate build dependencies 2020-02-18 17:40:39 -06:00
s390x_cross.txt Introduce an s390x cross compile target to CI 2017-09-08 09:24:54 +01:00
snap.sh Add support for creating snaps 2018-05-31 14:12:06 -05:00
snapcraft-wrapper trivial: snap: pull from edge channel to build 2019-02-25 21:27:18 -06:00
ubuntu.sh trivial: explicitly install missing dependencies in ubuntu.sh 2020-11-18 12:34:19 -06:00

Continuous Integration

Continuous integration for fwupd is provided by Travis CI.

By using Travis CI, builds are exercised across a variety of environments attempting to maximize code coverage. For every commit or pull request 6 builds are performed:

Fedora (x86_64)

  • A fully packaged RPM build with all plugins enabled
  • Compiled under gcc with AddressSanitizer
  • Tests with -Werror enabled
  • Tests with the built in local test suite for all plugins.
  • All packages are installed
  • An installed testing run with the "test" plugin and pulling from LVFS.
  • With modem manager disabled

Debian testing (x86_64)

  • A fully packaged DEB build with all plugins enabled
  • Compiled under gcc
  • Tests with -Werror enabled
  • Tests with the built in local test suite for all plugins.
  • All packages are installed
  • An installed testing run with the "test" plugin and pulling from LVFS.
  • All packages are removed

Debian testing (i386)

  • A fully packaged DEB build with all plugins enabled
  • Compiled under gcc
  • Tests with -Werror enabled
  • Tests with the built in local test suite for all plugins.
  • All packages are installed
  • An installed testing run with the "test" plugin and pulling from LVFS.
  • All packages are removed

Ubuntu devel release (x86_64)

  • A fully packaged DEB build with all plugins enabled
  • Compiled under clang
  • Tests without -Werror enabled
  • Tests with the built in local test suite for all plugins.
  • All packages are installed
  • An installed testing run with the "test" plugin and pulling from LVFS.
  • All packages are removed

Debian testing (cross compile s390x)

  • Not packaged
  • Tests for missing translation files
  • No redfish support
  • Compiled under gcc
  • Tests with -Werror enabled
  • Runs local test suite using qemu-user
  • Modem manager disabled

Arch Linux (x86_64)

  • A fully packaged pkg build with all plugins enabled
  • Compiled under gcc
  • Tests with -Werror enabled
  • Compile with the deprecated USB plugin enabled
  • Tests with the built in local test suite for all plugins.
  • All packages are installed

Flatpak

  • A flatpak bundle with all plugins enabled
  • Compiled under gcc with the org.gnome.Sdk/x86_64/3.28 runtime
  • Builds without the daemon, so only fwupdtool is available
  • No GPG, PKCS-7, GObjectIntrospection, systemd or ConsoleKit support
  • No tests

Adding a new target

Dockerfiles are generated dynamically by the python script generate_dockerfile.py. The python script will recognize the environment variable OS to determine what target to generate a Dockerfile for.

dependencies.xml

Initially the python script will read in dependencies.xml to generate a dependency list for that target. The XML is organized by a top level element representing the dependencies needed for building fwupd.

The child elements represent individual dependencies for all distributions.

  • This element has an attribute id that represents the most common package name used by distributions
  • This element has an attribute type that represents if the package is needed at build time or runtime.

Each dependency then has a mapping to individual distributions (distro).

  • This element has an attribute id that represents the distribution.

Each distribution will have package elements and control elements. Package elements represent the name of the package needed for the distribution.

  • An optional attribute variant represents one deviation of that distribution. For example building a specific architecture or with a different compiler.
  • If the package element is empty the id of the element will be used. Control elements represent specific requirements associated to a dependency. They will contain elements with individual details.
  • version elements represent a minimum version to be installed
  • inclusive elements represent an inclusive list of architectures to be installed on
  • exclusive elements represent an exclusive list of architectures to not be installed on

For convenience there is also a standalone script generate_dependencies.py that parses dependencies.xml.

Dockerfile.in

The Dockerfile.in file will be used as a template to build the container. No hardcoded dependencies should be put in this file. They should be stored in dependencies.xml.