This repository builds a Docker image which is used for running the CI tests at Travis. The built image is available at the yastdevel/storage-ng Docker repository.
-
The image is rebuilt whenever a commit it pushed to the
master
branch. This is implemented via GitHub webhooks. -
Additionally the image is periodically rebuilt to ensure the latest YaST packages from the YaST:Head and YaST:storage-ng OBS projects are used even when the image configuration has not been changed. The build is triggered by the docker-trigger-yastdevel-storage-ng Jenkins job.
-
The upstream dependency to the opensuse project is defined so whenever the base openSUSE system is updated the image should be automatically rebuilt as well.
If for some reason the automatic rebuilds do not work or you need to fix a broken build you can trigger rebuild manually.
-
Go to the Build Settings tab and press the Trigger button next to the master branch configuration line.
-
If you need to trigger the build from a script check the Build Triggers section at the bottom, press the Show examples link to display the
curl
commands. (The commands contain a secret access token, keep it in a safe place, do not put it in a publicly visible place.)
This image is based on the latest openSUSE Tumbleweed image, additionally it contains the packages needed for running tests for YaST packages written in cpp.
The image contains an storage-ng-travis-*
scripts which runs all the checks and tests.
The workflow is:
- Copy the sources into the
/usr/src/app
directory. - If the code needs additional packages install them using the
zypper install
command from the localDockerfile
. (If the package is need by more modules you can add it into the original Docker image.) - Run the respective
storage-ng-travis-*
script.