diff options
author | Julian Andres Klode <julian.klode@canonical.com> | 2019-02-21 15:13:04 +0100 |
---|---|---|
committer | Julian Andres Klode <julian.klode@canonical.com> | 2019-02-21 16:42:12 +0100 |
commit | 270271363fa59f91ecd8d5d5432e29cd7a9f1ed5 (patch) | |
tree | 9de8d514c44faf735ee899210b9f9e9fd69616f1 /.travis.yml | |
parent | 6d0e4aaf4162ad11f9634e7b4fb6106c67da749c (diff) |
travis CI: Use docker container to get useful results
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index 2d9194c28..c53bcf620 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,15 @@ language: cpp -before_install: - - sudo apt-get update -q - - sudo apt-get install -q --no-install-recommends dpkg-dev debhelper libdb-dev gettext libcurl4-gnutls-dev zlib1g-dev libbz2-dev xsltproc docbook-xsl docbook-xml po4a autotools-dev autoconf automake doxygen debiandoc-sgml stunnel4 -script: make && make test && test/integration/run-tests +sudo: required +services: + - docker +env: + - USER=travis + - USER=root +install: + - sed -i -e "s#1000#$(id -u)#g" Dockerfile + - docker build --tag=apt-ci . +before_script: + - docker run --rm -w $PWD -v $HOME/.ccache:$HOME/.ccache -v $PWD:$PWD --user=travis apt-ci make +script: + - docker run --rm -w $PWD -v $PWD:$PWD --user=travis apt-ci env make test + - docker run --rm -w $PWD -v $PWD:$PWD --user=$USER --tmpfs /tmp:suid,exec apt-ci unbuffer ./test/integration/run-tests |