new: use travis as the actual build environment

Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
Lorenzo Fontana 2019-12-12 00:44:16 +01:00 committed by Leo Di Donato
parent f492992c28
commit fb42613cf1

View File

@ -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"