mirror of
https://github.com/actions/runner-images.git
synced 2025-12-14 13:17:54 +00:00
[Ubuntu] Migrate tests for common tools to Pester (part 3) (#2337)
* add test for Git * Add Heroku * Add hhvm * Add Homebrew * Add Julia * Add kind * Add Kubernetes Tools * Remove kind and homebrew validate * replace capital letter * Add Leiningen * add source to Leiningen * Add Mercurial * Add conda * Add Netlify * Add packer * Add pollinate * Add Pulumi * Add Phantomjs * Add Haveged * Fix for kubectl * Fix julia installation * Add installer_script_folder env variable to run tests in brew provisioner * Add delay after reboot * Adjust pause settings
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
################################################################################
|
||||
|
||||
# Source the helpers for use with the script
|
||||
source "$HELPER_SCRIPTS"/install.sh
|
||||
source $HELPER_SCRIPTS/install.sh
|
||||
source $HELPER_SCRIPTS/invoke-tests.sh
|
||||
|
||||
## Install git
|
||||
add-apt-repository ppa:git-core/ppa -y
|
||||
@@ -20,23 +21,6 @@ apt-get install -y --no-install-recommends git-lfs
|
||||
# Install git-ftp
|
||||
apt-get install git-ftp -y
|
||||
|
||||
# Run tests to determine that the software installed as expected
|
||||
echo "Testing git installation"
|
||||
if ! command -v git; then
|
||||
echo "git was not installed"
|
||||
exit 1
|
||||
fi
|
||||
echo "Testing git-lfs installation"
|
||||
if ! command -v git-lfs; then
|
||||
echo "git-lfs was not installed"
|
||||
exit 1
|
||||
fi
|
||||
echo "Testing git-ftp installation"
|
||||
if ! command -v git-ftp; then
|
||||
echo "git-ftp was not installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
#Install hub
|
||||
tmp_hub="/tmp/hub"
|
||||
mkdir -p "$tmp_hub"
|
||||
@@ -45,13 +29,8 @@ download_with_retries "$url" "$tmp_hub"
|
||||
tar xzvf "$tmp_hub"/hub-linux-amd64-*.tgz --strip-components 1 -C "$tmp_hub"
|
||||
mv "$tmp_hub"/bin/hub /usr/local/bin
|
||||
|
||||
if command -v hub; then
|
||||
echo "hub CLI was installed successfully"
|
||||
else
|
||||
echo "[!] Hub CLI was not installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Add well-known SSH host keys to known_hosts
|
||||
ssh-keyscan -t rsa github.com >> /etc/ssh/ssh_known_hosts
|
||||
ssh-keyscan -t rsa ssh.dev.azure.com >> /etc/ssh/ssh_known_hosts
|
||||
|
||||
invoke_tests "Tools" "Git"
|
||||
Reference in New Issue
Block a user