28 lines
743 B
Django/Jinja
28 lines
743 B
Django/Jinja
def python_unittest(image) {
|
|
sh (
|
|
script: "${docker_run} ${image} ./tests/scripts/task_python_unittest.sh",
|
|
label: 'Run Python unit tests',
|
|
)
|
|
}
|
|
|
|
def make_cpp_tests(image, build_dir) {
|
|
sh (
|
|
script: """
|
|
set -eux
|
|
${docker_run} ${image} python3 ./tests/scripts/task_build.py \
|
|
--sccache-bucket tvm-sccache-prod \
|
|
--sccache-region us-west-2 \
|
|
--cmake-target cpptest \
|
|
--build-dir ${build_dir}
|
|
""",
|
|
label: 'Make C++ tests',
|
|
)
|
|
}
|
|
|
|
def cmake_build(image, path) {
|
|
sh (
|
|
script: "${docker_run} --env CI_NUM_EXECUTORS ${image} ./tests/scripts/task_build.py --sccache-bucket tvm-sccache-prod --sccache-region us-west-2 --build-dir ${path}",
|
|
label: 'Run CMake build',
|
|
)
|
|
}
|