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 Jan 19, 2017
1 parent fb34e89 commit e358651
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .travis.yml
@@ -1,18 +1,11 @@
language: cpp
compiler:
- gcc
sudo: required
language: bash
services:
- docker

before_install:
# disable rvm, use system Ruby
- rvm reset
- wget https://raw.githubusercontent.com/yast/yast-devtools/master/travis-tools/travis_setup.sh
- sh ./travis_setup.sh
# install newer glib (2.34 instead of provided 2.32)
- sudo add-apt-repository ppa:ricotz/testing -y
- sudo apt-get update -q
- sudo apt-get install yast2-devtools yast2-testsuite libgtk-3-dev libgnome-menu-3-dev libglib2.0-dev
- docker build -t yast-control-center-gnome-image .
script:
- make -f Makefile.cvs
- make
- sudo make install
- make check

# the "yast-travis-cpp" script is included in the base yastdevel/cpp image
# see https://github.com/yast/docker-yast-cpp/blob/master/yast-travis-cpp
- docker run -it -e TRAVIS=1 -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" yast-control-center-gnome-image yast-travis-cpp
7 changes: 7 additions & 0 deletions Dockerfile
@@ -0,0 +1,7 @@
FROM yastdevel/cpp
RUN zypper --gpg-auto-import-keys --non-interactive in --no-recommends \
"pkgconfig(gio-unix-2.0)" \
"pkgconfig(glib-2.0) >= 2.31.0" \
"pkgconfig(gtk+-3.0)" \
"pkgconfig(libgnome-menu-3.0)"
COPY . /usr/src/app

0 comments on commit e358651

Please sign in to comment.