automation: Add travis job to run vdsm tests
Signed-off-by: Ales Musil <amusil@redhat.com>
This commit is contained in:
parent
df8bb8e944
commit
fee1d5fd79
@ -22,6 +22,7 @@ env:
|
||||
testflags="--test-type lint"
|
||||
- CONTAINER_IMAGE=docker.io/nmstate/centos8-nmstate-dev
|
||||
testflags="--test-type unit_py36"
|
||||
- testflags="--test-vdsm"
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
@ -29,6 +30,7 @@ matrix:
|
||||
- env: CONTAINER_IMAGE=docker.io/nmstate/centos8-nmstate-dev
|
||||
testflags="--test-type integ --pytest-args='-x'
|
||||
--copr networkmanager/NetworkManager-master"
|
||||
- env: testflags="--test-vdsm"
|
||||
|
||||
addons:
|
||||
apt:
|
||||
|
@ -234,8 +234,16 @@ function remove_tempdir {
|
||||
rm -rf "$NMSTATE_TEMPDIR"
|
||||
}
|
||||
|
||||
function vdsm_tests {
|
||||
trap remove_tempdir EXIT
|
||||
git -C "$NMSTATE_TEMPDIR" clone --depth 1 https://gerrit.ovirt.org/vdsm
|
||||
cd "$NMSTATE_TEMPDIR/vdsm"
|
||||
./tests/network/functional/run-tests.sh --nmstate-source="$PROJECT_PATH"
|
||||
cd -
|
||||
}
|
||||
|
||||
options=$(getopt --options "" \
|
||||
--long customize:,pytest-args:,help,debug-shell,test-type:,el8,copr:,artifacts-dir:\
|
||||
--long customize:,pytest-args:,help,debug-shell,test-type:,el8,copr:,artifacts-dir:,test-vdsm\
|
||||
-- "${@}")
|
||||
eval set -- "$options"
|
||||
while true; do
|
||||
@ -266,11 +274,15 @@ while true; do
|
||||
shift
|
||||
EXPORT_DIR="$1"
|
||||
;;
|
||||
--test-vdsm)
|
||||
vdsm_tests
|
||||
exit
|
||||
;;
|
||||
--help)
|
||||
set +x
|
||||
echo -n "$0 [--copr=...] [--customize=...] [--debug-shell] [--el8] "
|
||||
echo -n "[--help] [--pytest-args=...] "
|
||||
echo "[--test-type=<TEST_TYPE>]"
|
||||
echo "[--test-type=<TEST_TYPE>] [--test-vdsm]"
|
||||
echo " Valid TEST_TYPE are:"
|
||||
echo " * $TEST_TYPE_ALL (default)"
|
||||
echo " * $TEST_TYPE_FORMAT"
|
||||
|
Loading…
x
Reference in New Issue
Block a user