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 ce29156 commit 1c71b7b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .travis.yml
@@ -1,18 +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 yast2 yast2-ruby-bindings yast2-perl-bindings" -g "rspec:3.3.0 yast-rake gettext coveralls"
script:
- rake check:syntax
- rake check:pot
- make -s -f Makefile.cvs
- make -s
- sudo make -s install
- make -s check
# evaluate code coverage for RSpec tests
- COVERAGE=1 rake test:unit
- docker build -t yast-country-image .
# list the installed packages (just for easier debugging)
- docker run --rm -it yast-country-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-country-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 1c71b7b

Please sign in to comment.