Skip to content

Commit

Permalink
Use the storage-ng Docker image in the storage-ng branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jan 24, 2017
1 parent 4f012e6 commit 1be5702
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 19 deletions.
28 changes: 9 additions & 19 deletions .travis.yml
@@ -1,21 +1,11 @@
language: cpp
compiler:
- gcc
sudo: required
language: bash
services:
- docker

before_install:
# disable rvm, use system Ruby
- rvm reset
# install newer augeasget repo with newer augeas, otherwise ruby-augeas fails (see https://github.com/yast/yast-network/pull/454#issuecomment-253795507)
- sudo add-apt-repository -y ppa:raphink/augeas
- sudo apt-get update
- sudo apt-get install libaugeas-dev libxml2-dev
# end of augeas install
- wget https://raw.githubusercontent.com/yast/yast-devtools/master/travis-tools/travis_setup.sh
- sh ./travis_setup.sh -p "yast2-devtools yast2 yast2-storage-ng rake ruby2.1-dev libaugeas-dev pkg-config" -g "gettext yast-rake yard rspec:3.3.0 simplecov coveralls rubocop:0.41.2 cfa_grub2 cheetah"
- docker build -t yast-bootloader-image .
script:
- rake check:syntax
- rake check:pot
- rubocop
- yardoc
- COVERAGE=1 rake test:unit
- sudo rake install

# the "storage-ng-travis-ruby" script is included in the base yastdevel/storage-ng image
# see https://github.com/yast/docker-storage-ng/blob/master/storage-ng-travis-ruby
- docker run -it -e TRAVIS=1 -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" yast-bootloader-image storage-ng-travis-ruby
3 changes: 3 additions & 0 deletions Dockerfile
@@ -0,0 +1,3 @@
FROM yastdevel/storage-ng
COPY . /usr/src/app

0 comments on commit 1be5702

Please sign in to comment.