Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
859d941
commit f890418
Showing
2 changed files
with
19 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |