]> git.proxmox.com Git - mirror_lxc.git/blobdiff - .travis.yml
seccomp: use SOCK_SEQPACKET for the notify proxy
[mirror_lxc.git] / .travis.yml
index ca354ccc0bd1b2ac78f8913702a5e2d1a1b34a6b..b8c695ffee9e5c052b9e333eb2be29dd1040b3d6 100644 (file)
@@ -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 --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: