mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-02 18:17:00 +09:00
* security(ci): constrain dependency installs and container build boundaries Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * fix(docker): retain shipped runtime libraries in build context Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * fix(tooling): quote gettext paths and honor Docker base selection Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * test(auth): use certificate expiry truth in rendering assertions Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * fix(tooling): finish Docker layer and regex scan findings Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * fix(ci): preserve documentation badge anchors without alternation Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * test(ci): preserve contributor badges and enforce Python coverage Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * ci: share changed-code coverage contracts and enforce shell policy Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * fix(ci): enforce private review files and run path regressions Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * test: measure changed gettext shell coverage Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * test: pin coverage to the reviewed PR revision Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> --------- Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
24 lines
679 B
Bash
Executable File
24 lines
679 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
repo_root="$(cd "${script_dir}/../.." && pwd)"
|
|
base_image="${CACTI_DOCKER_BASE_IMAGE:-cacti-web:1.3-dev}"
|
|
test_image="${CACTI_DOCKER_TEST_IMAGE:-cacti-test}"
|
|
|
|
docker build \
|
|
--tag "${base_image}" \
|
|
--file "${repo_root}/docker/Dockerfile" \
|
|
"${repo_root}/docker"
|
|
|
|
docker build \
|
|
--tag "${test_image}" \
|
|
--build-arg "CACTI_TEST_BASE=${base_image}" \
|
|
--file "${repo_root}/docker/Dockerfile.test" \
|
|
"${repo_root}"
|
|
|
|
docker run --rm \
|
|
--env XDEBUG_MODE="${XDEBUG_MODE:-off}" \
|
|
"${test_image}" \
|
|
include/vendor/bin/pest --configuration=tests/phpunit.xml --display-warnings "$@"
|