Skip to content

Commit

Permalink
build: allow the tester command to retrieve the source and build env
Browse files Browse the repository at this point in the history
variables

Co-Authored-By: Leonardo Grasso <me@leonardograsso.com>
Signed-off-by: Lorenzo Fontana <fontanalorenz@gmail.com>
  • Loading branch information
fntlnz and leogr committed Sep 2, 2020
1 parent 7c55185 commit be94763
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ jobs:
# Execute integration tests based on the build results coming from the "build/centos7" job
"tests/integration":
docker:
- image: falcosecurity/falco-tester:latest
- image: falcosecurity/falco-tester:feat-minimal-build # todo(fntlnz): change this to latest before merge, but first, update the image on docker hub
environment:
SOURCE_DIR: "/source"
BUILD_DIR: "/build"
Expand All @@ -244,7 +244,7 @@ jobs:
command: /usr/bin/entrypoint test
"tests/integration-static":
docker:
- image: falcosecurity/falco-tester:latest
- image: falcosecurity/falco-tester:feat-minimal-build # todo(fntlnz): change this to latest before merge, but first, update the image on docker hub
environment:
SOURCE_DIR: "/source-static"
BUILD_DIR: "/build-static"
Expand Down
7 changes: 4 additions & 3 deletions docker/tester/root/usr/bin/entrypoint
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env bash

set -eu -o pipefail
set -u -o pipefail

BUILD_DIR=${BUILD_DIR:-/build}
SOURCE_DIR=${SOURCE_DIR:-/source}

SOURCE_DIR=/source
BUILD_DIR=/build
CMD=${1:-test}
shift

Expand Down

0 comments on commit be94763

Please sign in to comment.