Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
64 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
sudo: required | ||
language: bash | ||
services: | ||
- docker | ||
|
||
before_install: | ||
- docker build -t libyui-bindings-image . | ||
script: | ||
# the "libyui-travis" script is included in the base libyui/devel image | ||
# see https://github.com/libyui/docker-devel/blob/master/libyui-travis | ||
- docker run -it libyui-bindings-image libyui-travis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Use the libyui/devel image as the base | ||
FROM libyui/devel | ||
|
||
RUN zypper --non-interactive in --no-recommends \ | ||
python-devel \ | ||
ruby-devel \ | ||
swig | ||
|
||
COPY . /usr/src/app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# LibYUI - The Language Bindings | ||
|
||
[![Build Status](https://travis-ci.org/libyui/libyui-bindings.svg?branch=master | ||
)](https://travis-ci.org/libyui/libyui-bindings) | ||
|
||
[Libyui](https://github.com/libyui/libyui) is a widget abstraction library | ||
providing Qt, GTK and ncurses frontends. Originally it was developed for | ||
[YaST](https://yast.github.io/) but it can be used in any independent project. | ||
|
||
The libyui library is written in C++, but this part contains bindings for other | ||
programming languages like Perl, Ruby or Python. | ||
|
||
### Ruby Notes | ||
|
||
The API tries to follow these Ruby standards: | ||
|
||
- Containers do not implement iterators but: | ||
- each | ||
- to_a | ||
- etc | ||
- lower_case_methods instead of camelCaseMethods | ||
|
||
|
||
### Building | ||
|
||
Libyui uses CMake, driven by a slightly complex set of | ||
[CMakefiles](https://github.com/libyui/libyui/tree/master/buildtools). For | ||
reproducible builds it is best to use the [libyui-rake]( | ||
https://github.com/libyui/libyui-rake) Ruby gem like the [Jenkins CI]( | ||
https://ci.opensuse.org/view/libyui/) jobs do. | ||
|
||
It can be installed from [rubygems.org](https://rubygems.org/gems/libyui-rake/) | ||
using this command (Ruby needs to be installed in the system): | ||
|
||
``` | ||
gem install libyui-rake | ||
``` | ||
|
||
Then to build the package run: | ||
|
||
``` | ||
rake osc:build | ||
``` | ||
|