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 6, 2017
1 parent 899552d commit 9bbf610
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
19 changes: 9 additions & 10 deletions .travis.yml
@@ -1,12 +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 "yast2-devtools doxygen pkg-config hwinfo-dev yast2-core-dev"
- docker build -t yast-hardware-detection-image .
script:
- make -s -f Makefile.cvs
- make -s -j 4
- sudo make -s install
- make -s check

# the "yast-travis-cpp" script is included in the base yastdevel/cpp-tw image
# see https://github.com/yast/docker-yast-cpp-tw/blob/master/yast-travis-cpp
- docker run -it yast-hardware-detection-image yast-travis-cpp
5 changes: 5 additions & 0 deletions Dockerfile
@@ -0,0 +1,5 @@
FROM yastdevel/cpp-tw
#RUN zypper --gpg-auto-import-keys --non-interactive in --no-recommends \
# libzypp-devel
COPY . /tmp/sources

0 comments on commit 9bbf610

Please sign in to comment.