Travis provides nice integration with GitHub, it can automatically run tests for every commit or every pull request.
Unfortunately the current support is quite limited, the problem is that Yast packages are not available at Travis builders. The workaround is to mock used Yast calls (that leads to overmocking) and reimplementing some Yast core functions. Another solution is to test only the functionality which does not rely on Yast much, but that means the code coverage will be rather small...
Provide Yast packages for Ubuntu
Travis allows to install additional packages (see the doc), but the builders are running Ubuntu and we do not have Yast packages for Ubuntu...
The solution is to repackage Yast packages to
deb packages for Ubuntu in YaSTTravis OBS project.
We do not need to package all Yast modules, just the base packages like
yast2-ruby-bindingsand the dependent packages, the leaf packages do not need to packaged.
It's really about repackaging, the Yast packages will very likely not work in Ubuntu out of box (because of different config files, package names, file locations, services, different system defaults, different package management...). But that should not matter as the system access will be stubbed/mocked in the tests anyway, for running tests the real functionality is not needed, we just need that the files can compiled and loaded.
I have already started the project at the CSM department workshop last month. What has been done:
YaSTTravis OBS project set up
Some modules already have
.travis.ymlfile added and Travis builds are enabled in
There is the overview of already converted modules is available
- Enable Travis builds for all currently maintained Yast packages (in Git master branch)
- As a side effect we could attract some Debian/Ubuntu developers to help us with the Yast port and this could help us to broaden the community around Yast.
- The support could be enhanced to other Git branches, for example SLE12-GA branch could be used for testing SLE12 maintenace updates.
- The tests run at Travis can be enhanced to report test code coverage using coveralls
Looking for mad skills in:
packaging travis obs yast
This project is part of:
Hack Week 11
Motivation: You know a particular function ...
[Video Recording of openSUSE Conference sessio...
Following the work started in the last hackweek...
Currently it's pretty difficult to create tests...
SUSE Manager uses an ivy repository on the R&D ...