mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-21 11:58:41 +00:00
The script now has new options. Add options to make CI work. Fixes: #438 Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
32 lines
616 B
Bash
32 lines
616 B
Bash
#
|
|
# Copyright (c) 2018 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
export tests_repo="${tests_repo:-github.com/kata-containers/tests}"
|
|
export tests_repo_dir="$GOPATH/src/$tests_repo"
|
|
|
|
clone_tests_repo()
|
|
{
|
|
# KATA_CI_NO_NETWORK is (has to be) ignored if there is
|
|
# no existing clone.
|
|
if [ -d "$tests_repo_dir" -a -n "$KATA_CI_NO_NETWORK" ]
|
|
then
|
|
return
|
|
fi
|
|
|
|
go get -d -u "$tests_repo" || true
|
|
}
|
|
|
|
run_static_checks()
|
|
{
|
|
clone_tests_repo
|
|
bash "$tests_repo_dir/.ci/static-checks.sh" "github.com/kata-containers/runtime"
|
|
}
|
|
|
|
run_go_test()
|
|
{
|
|
clone_tests_repo
|
|
bash "$tests_repo_dir/.ci/go-test.sh"
|
|
}
|