mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-22 04:18:53 +00:00
travis: enable runtime
Run make and test for both agent and runtime. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
@@ -20,6 +20,7 @@ before_install:
|
|||||||
- "ci/setup.sh"
|
- "ci/setup.sh"
|
||||||
- "ci/install_go.sh"
|
- "ci/install_go.sh"
|
||||||
- "ci/install_rust.sh"
|
- "ci/install_rust.sh"
|
||||||
|
- "ci/install_vc.sh"
|
||||||
- "ci/static-checks.sh"
|
- "ci/static-checks.sh"
|
||||||
|
|
||||||
# need to install rust from scratch?
|
# need to install rust from scratch?
|
||||||
@@ -27,7 +28,9 @@ before_install:
|
|||||||
# which is already installed?
|
# which is already installed?
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
- cd ${TRAVIS_BUILD_DIR}/src/runtime && make
|
||||||
- cd ${TRAVIS_BUILD_DIR}/src/agent && make
|
- cd ${TRAVIS_BUILD_DIR}/src/agent && make
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
- cd ${TRAVIS_BUILD_DIR}/src/runtime && make test
|
||||||
- cd ${TRAVIS_BUILD_DIR}/src/agent && make check
|
- cd ${TRAVIS_BUILD_DIR}/src/agent && make check
|
||||||
|
19
ci/install_vc.sh
Executable file
19
ci/install_vc.sh
Executable file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Copyright (c) 2018 Intel Corporation
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cidir=$(dirname "$0")
|
||||||
|
vcdir="${cidir}/../src/runtime/virtcontainers/"
|
||||||
|
source "${cidir}/lib.sh"
|
||||||
|
export CI_JOB="${CI_JOB:-default}"
|
||||||
|
|
||||||
|
clone_tests_repo
|
||||||
|
|
||||||
|
if [ "${CI_JOB}" != "PODMAN" ]; then
|
||||||
|
echo "Install virtcontainers"
|
||||||
|
make -C "${vcdir}" && chronic sudo make -C "${vcdir}" install
|
||||||
|
fi
|
Reference in New Issue
Block a user