mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-17 21:57:17 +00:00
new(circleci): enable integration tests for arm64.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
parent
161fe6fb3c
commit
315b44dc17
@ -7,30 +7,30 @@ jobs:
|
|||||||
resource_class: arm.medium
|
resource_class: arm.medium
|
||||||
steps:
|
steps:
|
||||||
- checkout:
|
- checkout:
|
||||||
path: /tmp/source/falco
|
path: /tmp/source-arm64/falco
|
||||||
- run:
|
- run:
|
||||||
name: Prepare project
|
name: Prepare project
|
||||||
command: |
|
command: |
|
||||||
mkdir -p /tmp/build-arm64 && mkdir -p /tmp/build-arm64/release && \
|
mkdir -p /tmp/build-arm64 && mkdir -p /tmp/build-arm64/release && \
|
||||||
docker run -e BUILD_TYPE="release" -it -v /tmp/source:/source -v /tmp/build-arm64:/build \
|
docker run -e BUILD_TYPE="release" -it -v /tmp/source-arm64:/source -v /tmp/build-arm64:/build \
|
||||||
falcosecurity/falco-builder:latest \
|
falcosecurity/falco-builder:latest \
|
||||||
cmake
|
cmake
|
||||||
- run:
|
- run:
|
||||||
name: Build
|
name: Build
|
||||||
command: |
|
command: |
|
||||||
docker run -e BUILD_TYPE="release" -it -v /tmp/source:/source -v /tmp/build-arm64:/build \
|
docker run -e BUILD_TYPE="release" -it -v /tmp/source-arm64:/source -v /tmp/build-arm64:/build \
|
||||||
falcosecurity/falco-builder:latest \
|
falcosecurity/falco-builder:latest \
|
||||||
all
|
all
|
||||||
- run:
|
- run:
|
||||||
name: Run unit tests
|
name: Run unit tests
|
||||||
command: |
|
command: |
|
||||||
docker run -e BUILD_TYPE="release" -it -v /tmp/source:/source -v /tmp/build-arm64:/build \
|
docker run -e BUILD_TYPE="release" -it -v /tmp/source-arm64:/source -v /tmp/build-arm64:/build \
|
||||||
falcosecurity/falco-builder:latest \
|
falcosecurity/falco-builder:latest \
|
||||||
tests
|
tests
|
||||||
- run:
|
- run:
|
||||||
name: Build packages
|
name: Build packages
|
||||||
command: |
|
command: |
|
||||||
docker run -e BUILD_TYPE="release" -it -v /tmp/source:/source -v /tmp/build-arm64:/build \
|
docker run -e BUILD_TYPE="release" -it -v /tmp/source-arm64:/source -v /tmp/build-arm64:/build \
|
||||||
falcosecurity/falco-builder:latest \
|
falcosecurity/falco-builder:latest \
|
||||||
package
|
package
|
||||||
- run:
|
- run:
|
||||||
@ -47,6 +47,7 @@ jobs:
|
|||||||
root: /tmp
|
root: /tmp
|
||||||
paths:
|
paths:
|
||||||
- build-arm64/release
|
- build-arm64/release
|
||||||
|
- source-arm64
|
||||||
# Build a statically linked Falco release binary using musl
|
# Build a statically linked Falco release binary using musl
|
||||||
# This build is 100% static, there are no host dependencies
|
# This build is 100% static, there are no host dependencies
|
||||||
"build-musl":
|
"build-musl":
|
||||||
@ -132,7 +133,7 @@ jobs:
|
|||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: /tmp/packages
|
path: /tmp/packages
|
||||||
destination: /packages
|
destination: /packages
|
||||||
# Execute integration tests based on the build results coming from the "build/centos7" job
|
# Execute integration tests based on the build results coming from the "build-centos7" job
|
||||||
"tests-integration":
|
"tests-integration":
|
||||||
docker:
|
docker:
|
||||||
- image: falcosecurity/falco-tester:latest
|
- image: falcosecurity/falco-tester:latest
|
||||||
@ -167,6 +168,23 @@ jobs:
|
|||||||
command: /usr/bin/entrypoint test
|
command: /usr/bin/entrypoint test
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: /build-static/release/integration-tests-xunit
|
path: /build-static/release/integration-tests-xunit
|
||||||
|
# Execute integration tests based on the build results coming from the "build-arm64" job
|
||||||
|
"tests-integration-arm64":
|
||||||
|
machine:
|
||||||
|
enabled: true
|
||||||
|
image: ubuntu-2004:202101-01
|
||||||
|
resource_class: arm.medium
|
||||||
|
steps:
|
||||||
|
- attach_workspace:
|
||||||
|
at: /tmp
|
||||||
|
- run:
|
||||||
|
name: Execute integration tests
|
||||||
|
command: |
|
||||||
|
docker run -e BUILD_TYPE="release" -e BUILD_DIR="/build-arm64" -e SOURCE_DIR="/source-arm64" -it -v /tmp/source-arm64:/source-arm64 -v /tmp/build-arm64:/build-arm64 \
|
||||||
|
falcosecurity/falco-tester:latest \
|
||||||
|
test
|
||||||
|
- store_test_results:
|
||||||
|
path: /tmp/build-arm64/release/integration-tests-xunit
|
||||||
"tests-driver-loader-integration":
|
"tests-driver-loader-integration":
|
||||||
machine:
|
machine:
|
||||||
image: ubuntu-2004:202107-02
|
image: ubuntu-2004:202107-02
|
||||||
@ -466,6 +484,9 @@ workflows:
|
|||||||
- "tests-integration":
|
- "tests-integration":
|
||||||
requires:
|
requires:
|
||||||
- "build-centos7"
|
- "build-centos7"
|
||||||
|
- "tests-integration-arm64":
|
||||||
|
requires:
|
||||||
|
- "build-arm64"
|
||||||
- "tests-integration-static":
|
- "tests-integration-static":
|
||||||
requires:
|
requires:
|
||||||
- "build-musl"
|
- "build-musl"
|
||||||
@ -481,7 +502,7 @@ workflows:
|
|||||||
only: master
|
only: master
|
||||||
requires:
|
requires:
|
||||||
- "tests-integration"
|
- "tests-integration"
|
||||||
- "build-arm64"
|
- "tests-integration-arm64"
|
||||||
- "publish-packages-dev":
|
- "publish-packages-dev":
|
||||||
context:
|
context:
|
||||||
- falco
|
- falco
|
||||||
@ -505,7 +526,7 @@ workflows:
|
|||||||
only: master
|
only: master
|
||||||
requires:
|
requires:
|
||||||
- "tests-integration"
|
- "tests-integration"
|
||||||
- "build-arm64"
|
- "tests-integration-arm64"
|
||||||
- "publish-docker-dev":
|
- "publish-docker-dev":
|
||||||
context:
|
context:
|
||||||
- falco
|
- falco
|
||||||
|
Loading…
Reference in New Issue
Block a user