Skip to content

Commit

Permalink
add docker also for sle12sp2
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jun 7, 2017
1 parent 859d941 commit f890418
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .travis.yml
@@ -1,17 +1,14 @@
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 "docbook-xsl xsltproc yast2-devtools bison flex libboost-dev pkg-config expect dejagnu libxcrypt-dev doxygen language-pack-en language-pack-cs automake"
script:
- make -f Makefile.cvs
- make -j 4
- sudo make install
# some tests fail in Ubuntu 12.04, disable tests temporarily to avoid false errors :-(
# - make check
# debugging: this test fails for some reason, looks like a strange locale related problem... :-(
# - (cd libycp; export LC_ALL=C; make check)
# - diff -u libycp/testsuite/tmp.out.Builtin_VIII libycp/testsuite/tests/builtin/Builtin_VIII.out
# - locale
- docker build -t yast-core-image .
# list the installed packages (just for easier debugging)
- docker run --rm -it yast-cluster-image rpm -qa | sort

script:
# the "yast-travis-cpp" script is included in the base yastdevel/cpp image
# see https://github.com/yast/docker-yast-cpp/blob/master/yast-travis-cpp
- docker run -it -e TRAVIS=1 -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" yast-core-image yast-travis-cpp
7 changes: 7 additions & 0 deletions Dockerfile
@@ -0,0 +1,7 @@
FROM yastdevel/cpp:sle12-sp2
# the tests require specific locale settings to pass
ENV LANG=POSIX LC_ALL=
# Remove the preinstalled yast2-core, it interferes with the built one
# when running the tests... (huh??)
RUN zypper --non-interactive rm yast2-core
COPY . /usr/src/app

0 comments on commit f890418

Please sign in to comment.