Skip to content

Commit

Permalink
Use Docker at Travis also in the SLE12-SP2 branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jun 2, 2017
1 parent 178d79a commit 4f1009e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
20 changes: 9 additions & 11 deletions .travis.yml
@@ -1,13 +1,11 @@
language: cpp
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 "ruby2.1 rake yast2-devtools" -g "yast-rake yard gettext"
- docker build -t yast-add-on-image .
script:
- rake check:syntax
- rake check:pot
- yardoc
- rake test:unit
- sudo rake install

# 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-add-on-image yast-travis-ruby
3 changes: 3 additions & 0 deletions Dockerfile
@@ -0,0 +1,3 @@
FROM yastdevel/ruby:sles12-sp2
COPY . /usr/src/app

0 comments on commit 4f1009e

Please sign in to comment.