Files
kata-containers/.ci/setup.sh
Jose Carlos Venegas Munoz be3266fb00 ci: Add travis basic testing
Add basic a few tests to be run by travis.

Signed-off-by: Jose Carlos Venegas Munoz <jose.carlos.venegas.munoz@intel.com>
2018-01-19 12:51:07 -06:00

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