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 5, 2017
1 parent 4639224 commit b2ba437
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
language: cpp
compiler:
- gcc
sudo: required
language: ruby
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-storage yast2-xml yast2-transfer yast2-services-manager yast2-installation yast2-installation-control yast2-packager yast2-slp trang" -g "rspec:3.3.0 yast-rake gettext cheetah"
- docker build -t yast-autoyast-image .
script:
- rake check:syntax
- rake check:pot
- rake test:unit
- make -f Makefile.cvs
- make
- sudo make install
- make check
- ./check_schema.sh

# the "yast-travis" script is included in the base yastdevel/ruby-tw image
# see https://github.com/yast/docker-yast-ruby-tw/blob/master/yast-travis
- docker run -it -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" yast-autoyast-image yast-travis
- docker run -it yast-autoyast-image ./check_schema.sh
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM yastdevel/ruby-tw
COPY . /tmp/sources
RUN zypper --gpg-auto-import-keys --non-interactive in --no-recommends \
trang \
libxml2-tools \
libxslt-tools

0 comments on commit b2ba437

Please sign in to comment.