mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-19 00:57:48 +00:00
build: parallel execution
Signed-off-by: Lorenzo Fontana <lo@linux.com>
This commit is contained in:
parent
79d9999b7e
commit
14337670a5
@ -1,6 +1,7 @@
|
|||||||
version: 2
|
version: 2
|
||||||
jobs:
|
jobs:
|
||||||
# build using ubuntu LTS
|
# build using ubuntu LTS
|
||||||
|
# This build is dynamic, most dependencies are taken from the OS
|
||||||
"build/ubuntu-bionic":
|
"build/ubuntu-bionic":
|
||||||
docker:
|
docker:
|
||||||
- image: ubuntu:bionic
|
- image: ubuntu:bionic
|
||||||
@ -23,7 +24,7 @@ jobs:
|
|||||||
name: build
|
name: build
|
||||||
command: |
|
command: |
|
||||||
pushd build
|
pushd build
|
||||||
make -j all
|
make -j4 all
|
||||||
popd
|
popd
|
||||||
- run:
|
- run:
|
||||||
name: run unit tests
|
name: run unit tests
|
||||||
@ -32,6 +33,7 @@ jobs:
|
|||||||
make tests
|
make tests
|
||||||
popd
|
popd
|
||||||
# build using our own builder base image using centos 7
|
# build using our own builder base image using centos 7
|
||||||
|
# This build is static, dependencies are bundled in the falco binary
|
||||||
"build/centos7":
|
"build/centos7":
|
||||||
docker:
|
docker:
|
||||||
- image: falcosecurity/falco-builder:dynamic-builds # todo(fntlnz): replace this with the actual image once PR #968 is merged
|
- image: falcosecurity/falco-builder:dynamic-builds # todo(fntlnz): replace this with the actual image once PR #968 is merged
|
||||||
@ -42,8 +44,14 @@ jobs:
|
|||||||
name: prepare project
|
name: prepare project
|
||||||
command: /usr/bin/entrypoint cmake
|
command: /usr/bin/entrypoint cmake
|
||||||
- run:
|
- run:
|
||||||
name: prepare project
|
name: build
|
||||||
command: /usr/bin/entrypoint all
|
command: /usr/bin/entrypoint all
|
||||||
|
- run:
|
||||||
|
name: build packages
|
||||||
|
command: /usr/bin/entrypoint package
|
||||||
|
- run:
|
||||||
|
name: run unit tests
|
||||||
|
command: /usr/bin/entrypoint package
|
||||||
- persist_to_workspace:
|
- persist_to_workspace:
|
||||||
root: /
|
root: /
|
||||||
paths:
|
paths:
|
||||||
@ -56,7 +64,7 @@ jobs:
|
|||||||
- checkout:
|
- checkout:
|
||||||
path: /source/falco
|
path: /source/falco
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: /build
|
at: /
|
||||||
- run:
|
- run:
|
||||||
name: execute integration tests
|
name: execute integration tests
|
||||||
command: |
|
command: |
|
||||||
|
Loading…
Reference in New Issue
Block a user