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 20, 2017
1 parent 4025eb9 commit ddb2f84
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .travis.yml
@@ -1,14 +1,11 @@
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 "yast2-devtools libx11-dev libxmu-dev"
- docker build -t yast-x11-image .
script:
- make -f Makefile.cvs
- make
- sudo make install
- make check

# 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-x11-image yast-travis-cpp
7 changes: 7 additions & 0 deletions Dockerfile
@@ -0,0 +1,7 @@
FROM yastdevel/cpp
RUN zypper --gpg-auto-import-keys --non-interactive in --no-recommends \
xorg-x11-libX11-devel \
xorg-x11-libXmu-devel

COPY . /usr/src/app

0 comments on commit ddb2f84

Please sign in to comment.