Skip to content

Commit

Permalink
Use Docker at Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jan 4, 2017
1 parent 95356f7 commit 5eaaa33
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
language: cpp
compiler:
- gcc
sudo: required
language: ruby
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"
- docker build -t yast-core-image .
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

# the "yast-travis" script is included in the base yastdevel/ruby-tw image
# see https://github.com/yast/docker-yast-ruby-tw/blob/master/yast-travis
- docker run -it -e TRAVIS_JOB_ID="$TRAVIS_JOB_ID" yast-core-image yast-travis
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM yastdevel/cpp-tw
# the tests require specific locale settings to pass
ENV LANG=POSIX LC_ALL=
COPY . /tmp/sources

0 comments on commit 5eaaa33

Please sign in to comment.