Skip to content

Commit

Permalink
Merge pull request #11 from yast/docker-SLE-12-SP2
Browse files Browse the repository at this point in the history
add docker for sle12sp2
  • Loading branch information
jreidinger committed Jun 8, 2017
2 parents b27e6eb + 47431bb commit de966e7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 14 deletions.
12 changes: 12 additions & 0 deletions .gitignore
Expand Up @@ -31,3 +31,15 @@ Makefile.in
/ltversion.m4
/lt~obsolete.m4
/missing
/.yardoc
/doc
drbd.pot
/pluglib-bindings.ami
testsuite/config/default.exp
testsuite/config/unix.exp
testsuite/config/unknown.exp
testsuite/run/runtest.sh
testsuite/site.exp
testsuite/yast2-drbd.log
testsuite/yast2-drbd.sum
testsuite/yast2-drbd.test/testsuite.exp
26 changes: 12 additions & 14 deletions .travis.yml
@@ -1,16 +1,14 @@
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 -p "rake yast2-devtools yast2-testsuite" -g "yast-rake gettext"
script:
- rake check:syntax
- rake check:pot
- make -f Makefile.cvs
- make
- sudo make install
- make check
- docker build -t yast-drbd-image .
# list the installed packages (just for easier debugging)
- docker run --rm -it yast-drbd-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-drbd-image yast-travis-ruby
3 changes: 3 additions & 0 deletions Dockerfile
@@ -0,0 +1,3 @@
FROM yastdevel/ruby:sle12-sp2
COPY . /usr/src/app

0 comments on commit de966e7

Please sign in to comment.