Skip to content

Commit

Permalink
Use Docker at Travis (#71)
Browse files Browse the repository at this point in the history
* Use Docker at Travis

* Improve the Travis check
  • Loading branch information
lslezak authored Jan 26, 2017
1 parent 84ae237 commit e5d0f2a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
language: cpp
compiler:
- gcc
sudo: required
language: bash
services:
- docker

before_install:
- wget https://raw.githubusercontent.com/yast/yast-devtools/master/travis-tools/travis_setup.sh
- sh ./travis_setup.sh -p "yast2-installation-control xsltproc"
- docker build -t yast-skelcd-control-opensuse-image .
script:
- cd control
- make
- make check

# 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-skelcd-control-opensuse-image yast-travis-ruby
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM yastdevel/ruby
COPY . /usr/src/app

4 changes: 4 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ end
# generate the *-promo files when creating the tarball
task :tarball => :create_promo

# check also the syntax of the XML files
task :"check:syntax" do
sh "make -C control check"
end

0 comments on commit e5d0f2a

Please sign in to comment.