mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-29 11:14:31 +01:00
We require make and gcc to run our CI tools. Fixes: #219. Signed-off-by: Salvador Fuentes <salvador.fuentes@intel.com>
30 lines
737 B
Bash
Executable File
30 lines
737 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
# Copyright (c) 2018 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
set -e
|
|
|
|
cidir=$(dirname "$0")
|
|
source "${cidir}/lib.sh"
|
|
|
|
#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 yamllint coreutils moreutils bc make gcc
|
|
elif [ "$ID" == centos ];then
|
|
sudo -E yum -y install epel-release
|
|
sudo -E yum -y install automake yamllint coreutils moreutils bc
|
|
elif [ "$ID" == ubuntu ];then
|
|
sudo apt-get -qq update
|
|
sudo apt-get install -y -qq make automake qemu-utils python-pip coreutils moreutils bc
|
|
sudo pip install yamllint
|
|
else
|
|
echo "Linux distribution not supported"
|
|
fi
|
|
|
|
bash "${cidir}/static-checks.sh"
|