mirror of
https://github.com/clearlinux/mixer-tools.git
synced 2026-09-03 20:21:32 +00:00
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>
21 lines
356 B
Bash
Executable File
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
|