mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-27 15:57:09 +00:00
osbuilder: move code into tools directory
move all osbuilder files into `tools` directory to be able to merge this into kata-containers repo. Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
This commit is contained in:
parent
eb128f8558
commit
715d342519
24
.ci/lib.sh
24
.ci/lib.sh
@ -1,24 +0,0 @@
|
|||||||
#
|
|
||||||
# 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()
|
|
||||||
{
|
|
||||||
bash "$tests_repo_dir/.ci/static-checks.sh" "github.com/kata-containers/osbuilder"
|
|
||||||
}
|
|
18
.ci/run.sh
18
.ci/run.sh
@ -1,18 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Copyright (c) 2018 Intel Corporation
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
export GOPATH="${GOPATH:-/tmp/go}"
|
|
||||||
|
|
||||||
script_dir="$(dirname $(readlink -f $0))"
|
|
||||||
|
|
||||||
sudo -E PATH="$PATH" bash "${script_dir}/../tests/test_images.sh"
|
|
||||||
|
|
||||||
# run again to build rust agent
|
|
||||||
sudo -E RUST_AGENT="yes" PATH="$PATH" bash "${script_dir}/../tests/test_images.sh"
|
|
21
.ci/setup.sh
21
.ci/setup.sh
@ -1,21 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Copyright (c) 2018 Intel Corporation
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
set -e
|
|
||||||
|
|
||||||
cidir=$(dirname "$0")
|
|
||||||
source "${cidir}/lib.sh"
|
|
||||||
|
|
||||||
clone_tests_repo
|
|
||||||
|
|
||||||
pushd "${tests_repo_dir}"
|
|
||||||
.ci/setup.sh
|
|
||||||
popd
|
|
||||||
|
|
||||||
bash "${cidir}/static-checks.sh"
|
|
||||||
# yq needed to correctly parse runtime/versions.yaml
|
|
||||||
make -C ${tests_repo_dir} install-yq
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
#
|
|
||||||
# Copyright (c) 2018 Intel Corporation
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
cidir=$(dirname "$0")
|
|
||||||
source "${cidir}/lib.sh"
|
|
||||||
|
|
||||||
run_static_checks
|
|
27
.travis.yml
27
.travis.yml
@ -1,27 +0,0 @@
|
|||||||
#
|
|
||||||
# Copyright (c) 2018 Intel Corporation
|
|
||||||
#
|
|
||||||
# SPDX-License-Identifier: Apache-2.0
|
|
||||||
#
|
|
||||||
|
|
||||||
sudo: required
|
|
||||||
dist: bionic
|
|
||||||
|
|
||||||
os:
|
|
||||||
- linux
|
|
||||||
- linux-ppc64le
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
allow_failures:
|
|
||||||
- os: linux-ppc64le
|
|
||||||
|
|
||||||
language: bash
|
|
||||||
|
|
||||||
services:
|
|
||||||
- docker
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- ".ci/setup.sh"
|
|
||||||
|
|
||||||
script:
|
|
||||||
- "travis_wait 50 .ci/run.sh"
|
|
0
.gitignore → tools/osbuilder/.gitignore
vendored
0
.gitignore → tools/osbuilder/.gitignore
vendored
Loading…
Reference in New Issue
Block a user