Skip to content

Commit

Permalink
Use Docker at Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Feb 17, 2017
1 parent ea91d4a commit 07c8d6b
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 15 deletions.
11 changes: 11 additions & 0 deletions .travis.yml
@@ -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
9 changes: 9 additions & 0 deletions Dockerfile
@@ -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
15 changes: 0 additions & 15 deletions README

This file was deleted.

44 changes: 44 additions & 0 deletions README.md
@@ -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
```

0 comments on commit 07c8d6b

Please sign in to comment.