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 6, 2017
1 parent 448cc30 commit 76b64fd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .travis.yml
@@ -1,16 +1,11 @@
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" -g "yast-rake gettext"
- docker build -t yast-slp-server-image .
script:
- rake check:syntax
- rake check:pot
- make -f Makefile.cvs
- make
- sudo make install
- make check

# 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=1 -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" yast-slp-server-image yast-travis
3 changes: 3 additions & 0 deletions Dockerfile
@@ -0,0 +1,3 @@
FROM yastdevel/ruby-tw
COPY . /tmp/sources

0 comments on commit 76b64fd

Please sign in to comment.