X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=.travis.yml;h=b8c695ffee9e5c052b9e333eb2be29dd1040b3d6;hb=33d7d28f4517e57021343f0016228913e6555dd1;hp=569e2688f00ca82ad2abbbc0c8f5399646cdcca4;hpb=7a6ecf65bf437ce3f26004e07e4edbc94cfad370;p=mirror_lxc.git diff --git a/.travis.yml b/.travis.yml index 569e2688f..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: "./autogen.sh && mkdir build && cd build && ../configure -O0 --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 + - 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: