Skip to content

Commit

Permalink
add docker to sle12sp2
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jun 7, 2017
1 parent 29848f9 commit cc582c3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .travis.yml
@@ -1,15 +1,14 @@
language: cpp
compiler:
- gcc
sudo: required
language: bash
services:
- docker

before_install:
# use gcc-4.8 (needed by libzypp) instead of gcc-4.6 default
- export CC=gcc-4.8
- export CXX=g++-4.8
- wget https://raw.githubusercontent.com/yast/yast-devtools/master/travis-tools/travis_setup.sh
- sh ./travis_setup.sh -p "yast2-core-dev libzypp-dev yast2-devtools doxygen yast2-testsuite g++-4.8 gettext"
script:
- make -f Makefile.cvs
- make -j 4
- make check
- sudo make install
- docker build -t yast-pkg-bindings-image .
# list the installed packages (just for easier debugging)
- docker run --rm -it yast-pkg-bindings-image rpm -qa | sort

script:
# the "yast-travis-ruby" script is included in the base yastdevel/ruby image
# see https://github.com/yast/docker-yast-ruby/blob/master/yast-travis-ruby
- docker run -it -e TRAVIS=1 -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" yast-pkg-bindings-image yast-travis-cpp
4 changes: 4 additions & 0 deletions Dockerfile
@@ -0,0 +1,4 @@
FROM yastdevel/cpp:sle12-sp2
RUN zypper --gpg-auto-import-keys --non-interactive in --no-recommends \
libzypp-devel
COPY . /usr/src/app

0 comments on commit cc582c3

Please sign in to comment.