X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=.travis.yml;h=b8c695ffee9e5c052b9e333eb2be29dd1040b3d6;hb=d4d684109c4ce9f6ba917ae60c9fb160ef84a8db;hp=2c8a1c7cf2f5da0ba14b918513a41cfe0ad7bd1d;hpb=6b28940591a22863c6d8ffd5459c0ee927527cd7;p=mirror_lxc.git diff --git a/.travis.yml b/.travis.yml index 2c8a1c7cf..b8c695ffe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,24 +2,15 @@ language: c compiler: - gcc - clang -env: - global: - - secure: "HRhoQBAke8QGGm8C8qH8cJ/vOB8x+ouDcKVL7iw6K6gLFBqSNF0Ikr/71lxof1nI2T3dk8shH5vv1i0OFhT2obHSQSYjs0fdO/B+4K/PXsj2BCmVtSketFK0xljU7RXzL+kS9V2A4R0SERygs2XahmbU0peePS2G+DbLTkWoxS8=" -addons: - coverity_scan: - project: - name: "lxc/lxc" - description: "LXC - Linux Containers https://linuxcontainers.org/lxc" - notification_email: lxc-devel@lists.linuxcontainers.org - build_command_prepend: "export CFLAGS=-O0 ./autogen.sh && mkdir build && cd build && ../configure --enable-tests --with-distro=unknown" - build_command: "make -j4" - branch_pattern: master before_install: - - echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca- - sudo add-apt-repository ppa:ubuntu-lxc/daily -y - sudo apt-get update -qq - - sudo apt-get install -qq libapparmor-dev libcap-dev libseccomp-dev python3-dev python3-setuptools docbook2x libgnutls-dev libselinux1-dev linux-libc-dev + - sudo apt-get install -qq coccinelle parallel libapparmor-dev libcap-dev libseccomp-dev python3-dev python3-setuptools docbook2x libgnutls-dev libselinux1-dev linux-libc-dev script: + - ./coccinelle/run-coccinelle.sh -i + - git diff --exit-code + - export CFLAGS="-Wall -Werror" + - export LDFLAGS="-pthread -lpthread" - ./autogen.sh - rm -Rf build - mkdir build @@ -27,6 +18,10 @@ script: - ../configure --enable-tests --with-distro=unknown - make -j4 - make DESTDIR=$TRAVIS_BUILD_DIR/install install + - cd ../config/apparmor + - ./lxc-generate-aa-rules.py container-rules.base > /tmp/output + - diff /tmp/output container-rules + notifications: email: recipients: