Files
runner-images/images/linux/scripts/installers/gcc.sh
Vladimir Safonkin 0ae118c6ae [Ubuntu] Create symlink for Pester test running (#2349)
* Create symlink for test running

* Fix 1604 and 2004 templates

* Fix php and haskell running

* Minor fix

* Fix new added tests

* Fix symlink

* Minor fix

* Fix script permissions

* Minor fix

* Fix firefox and rust tests

* Fix new merged tests
2020-12-30 09:57:11 +03:00

29 lines
687 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
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"