Files
runner-images/images/linux/scripts/installers/gcc.sh
Dibir Magomedsaygitov a9a236f7e5 [Ubuntu] Migrate tests for common tools to Pester (part 1) (#2288)
* add common tools tests pt1

* fix tests

* fix erlang test

* resolve comments

* minor changes

* remove extra logging
2020-12-23 10:25:52 +03:00

30 lines
726 B
Bash

#!/bin/bash -e
################################################################################
## File: gcc.sh
## Desc: Installs GNU C++
################################################################################
# Source the helpers for use with the script
source $HELPER_SCRIPTS/os.sh
source $HELPER_SCRIPTS/invoke-tests.sh
function InstallGcc {
version=$1
echo "Installing $version..."
apt-get install $version -y
}
# Install GNU C++ compiler
add-apt-repository ppa:ubuntu-toolchain-r/test -y
apt-get update -y
toolset="$INSTALLER_SCRIPT_FOLDER/toolset.json"
versions=$(jq -r '.gcc.versions[]' $toolset)
for version in ${versions[*]}; do
InstallGcc $version
done
invoke_tests "Tools" "gcc"