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 f8c946e commit 109c873
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .travis.yml
@@ -1,19 +1,12 @@
language: cpp
compiler:
- gcc
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 "rake yast2-core yast2-devtools yast2-testsuite yast2-ruby-bindings yast2-pkg-bindings ruby2.1-dev libaugeas-dev pkg-config gettext" -g "rspec:3.3.0 yast-rake gettext coveralls rubocop:0.41.2 cheetah abstract_method cfa"
script:
- rake check:pot
- rubocop
- make -s -f Makefile.cvs
- make -s
- sudo make -s install
# English messages, UTF-8, "C" locale for numeric formatting tests
- LC_ALL= LANG=en_US.UTF-8 LC_NUMERIC=C make -s check
# English messages, UTF-8, "C" locale for numeric formatting tests, enable test coverage report
- LC_ALL= LANG=en_US.UTF-8 LC_NUMERIC=C COVERAGE=1 rake test:unit
- docker build -t yast-yast2-image .

script:
# 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-yast2-image yast-travis-ruby
4 changes: 4 additions & 0 deletions Dockerfile
@@ -0,0 +1,4 @@
FROM yastdevel/ruby:sle12-sp2
COPY . /usr/src/app
# English messages, UTF-8, "C" locale for numeric formatting tests
ENV LC_ALL= LANG=en_US.UTF-8 LC_NUMERIC=C

0 comments on commit 109c873

Please sign in to comment.