build: falco builder and integration tests step

Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
Lorenzo Fontana
2020-01-14 16:57:51 +01:00
committed by Leo Di Donato
parent a2c0d90260
commit 885a0e24f5

View File

@@ -1,5 +1,6 @@
version: 2 version: 2
jobs: jobs:
# generic ubuntu build
build: build:
docker: docker:
- image: ubuntu:bionic - image: ubuntu:bionic
@@ -25,3 +26,27 @@ jobs:
pushd build pushd build
make tests make tests
popd popd
# build using our own builder base image
builder:
docker:
- image: falcosecurity/falco-builder:dynamic-build # todo(fntlnz): replace this with the actual image once PR #968 is merged
steps:
- checkout
- run:
name: prepare project
command: cmake
- persist_to_workspace:
root: .
paths:
- build/*
# execute integration tests based on the build results coming from the "builder" job
integration:
docker:
- image: falcosecurity/falco-tester:latest
steps:
- checkout
- attach_workspace:
at: build
- run:
name: prepare project
command: cmake