Files
mixer-tools/entrypoint.sh
T
William Douglas e514207dcc Add special handling for installing linter in CI
Don't download the linter unless a special CI env setting is set. Also
use a different cache to avoid permissions issues with the rootfs in
CI.

Signed-off-by: William Douglas <william.douglas@intel.com>
2024-01-30 11:42:32 -08:00

21 lines
356 B
Bash
Executable File

#!/bin/sh -l
cd /home/clr/mixer-tools
run_precheck() {
make && sudo -E make install
export CI_ONLY=1
export GOLANGCI_LINT_CACHE=/tmp/.golangci-lint
make lint && make check
}
run_battest() {
make && sudo -E make install
cd bat/tests/$TEST_DIR && make
}
if t=$(type -t "$INPUT_RUNFUNC"); then
if [ "$t" = "function" ]; then
$INPUT_RUNFUNC
fi
fi