mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-30 12:30:56 +00:00
new: use travis as the actual build environment
Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
parent
f492992c28
commit
fb42613cf1
10
.travis.yml
10
.travis.yml
@ -19,16 +19,20 @@ compiler: gcc
|
||||
env:
|
||||
- BUILD_TYPE=debug
|
||||
- BUILD_TYPE=release
|
||||
dist: xenial
|
||||
dist: bionic
|
||||
services:
|
||||
- docker
|
||||
before_install:
|
||||
- sudo apt-get update
|
||||
- sudo apt update -y
|
||||
install:
|
||||
- sudo apt install openssl-dev libyaml-dev libncurses-dev libc-ares-dev libprotobuf-dev jq -y
|
||||
- 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
|
||||
- pushd ../sysdig && (git checkout "${BRANCH}" || exit 0) && echo "Using branch:" $(git rev-parse --abbrev-ref HEAD) && popd
|
||||
script:
|
||||
- mkdir build
|
||||
- ./scripts/build "${TRAVIS_BUILD_DIR}/.." "${TRAVIS_BUILD_DIR}/build"
|
||||
- cmake ..
|
||||
- make -j4 falco
|
||||
# todo(fntlnz): execute tests and regression tests at this point
|
||||
#- ./scripts/build "${TRAVIS_BUILD_DIR}/.." "${TRAVIS_BUILD_DIR}/build"
|
||||
|
Loading…
Reference in New Issue
Block a user