mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-21 20:08:54 +00:00
Add basic a few tests to be run by travis. Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
21 lines
521 B
Bash
Executable File
21 lines
521 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Copyright (c) 2018 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
#Note: If add clearlinux as supported CI use a stateless os-release file
|
|
source /etc/os-release
|
|
|
|
if [ "$ID" == fedora ];then
|
|
sudo -E dnf -y install automake bats
|
|
elif [ "$ID" == ubuntu ];then
|
|
#bats isn't available for Ubuntu trusty, need for travis
|
|
sudo add-apt-repository -y ppa:duggan/bats
|
|
sudo apt-get -qq update
|
|
sudo apt-get install -y -qq automake bats qemu-utils
|
|
else
|
|
echo "Linux distribution not supported"
|
|
fi
|