mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-21 11:29:26 +00:00
* Add support for container metaevent to detect container spawning Create a new macro "container_started" to check both the old and the new check. Also, only look for execve exit events with vpid=1. * Use TBB_INCLUDE_DIR for consistency w sysdig,agent Previously it was a mix of TBB_INCLUDE and TBB_INCLUDE_DIR. * Build using matching sysdig branch, if exists
64 lines
2.3 KiB
YAML
64 lines
2.3 KiB
YAML
#
|
|
# Copyright (C) 2016-2018 Draios Inc dba Sysdig.
|
|
#
|
|
# This file is part of falco .
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
language: cpp
|
|
compiler: gcc
|
|
env:
|
|
- BUILD_TYPE=Debug
|
|
- BUILD_TYPE=Release
|
|
sudo: required
|
|
services:
|
|
- docker
|
|
before_install:
|
|
- sudo apt-get update
|
|
install:
|
|
- export BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
|
|
- sudo apt-get install rpm linux-headers-$(uname -r) libelf-dev
|
|
- git clone https://github.com/draios/sysdig.git ../sysdig
|
|
# if available, use the branch with the same name in sysdig
|
|
- pushd ../sysdig && (git checkout "${BRANCH}" || exit 0) && echo "Using sysdig branch:" $(git rev-parse --abbrev-ref HEAD) && popd
|
|
- sudo apt-get install -y python-pip libvirt-dev jq dkms
|
|
- cd ..
|
|
- curl -Lo avocado-36.0-tar.gz https://github.com/avocado-framework/avocado/archive/36.0lts.tar.gz
|
|
- tar -zxvf avocado-36.0-tar.gz
|
|
- cd avocado-36.0lts
|
|
- sed -e 's/libvirt-python>=1.2.9/libvirt-python>=1.2.9,<4.1.0/' < requirements.txt > /tmp/requirements.txt && mv /tmp/requirements.txt ./requirements.txt
|
|
- sudo -H pip install -r requirements.txt
|
|
- sudo python setup.py install
|
|
- cd ../falco
|
|
before_script:
|
|
- export KERNELDIR=/lib/modules/$(uname -r)/build
|
|
script:
|
|
- set -e
|
|
- mkdir build
|
|
- cd build
|
|
- cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DDRAIOS_DEBUG_FLAGS="-D_DEBUG -DNDEBUG"
|
|
- make VERBOSE=1
|
|
- make package
|
|
- cp falco*.deb ../docker/local
|
|
- cd ../docker/local
|
|
- docker build -t falcosecurity/falco:test .
|
|
- cd ../..
|
|
- sudo test/run_regression_tests.sh $TRAVIS_BRANCH
|
|
notifications:
|
|
webhooks:
|
|
urls:
|
|
# - https://webhooks.gitter.im/e/fdbc2356fb0ea2f15033
|
|
on_success: change
|
|
on_failure: always
|
|
on_start: never
|