mirror of
https://github.com/sobolevn/git-secret
synced 2024-10-31 21:20:29 +00:00
f14804254c
* upgrade ansible to 2.9.2 * Temporarily disable alpine builds because of #569
40 lines
945 B
Bash
40 lines
945 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
# Linux helper functions:
|
|
function update_linux() {
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -qq python3-apt python3-pycurl git python3-pip build-essential autoconf rpm
|
|
}
|
|
|
|
function install_ansible {
|
|
bash .ci/ansible-setup.sh
|
|
# pyOpen, ndg-* and pyasn1 are for 'InsecurePlatformWarning' error
|
|
~/.avm/v2.9/venv/bin/pip install netaddr ansible-lint pyOpenSSL ndg-httpsclient pyasn1
|
|
}
|
|
|
|
|
|
# Mac:
|
|
if [[ "$GITSECRET_DIST" == "brew" ]]; then
|
|
brew update
|
|
|
|
gnupg_installed="$(brew list | grep -c "gnupg")"
|
|
[[ "$gnupg_installed" -ge 1 ]] || brew install gnupg
|
|
if [[ -f "/usr/local/bin/gpg1" ]]; then
|
|
ln -s /usr/local/bin/gpg1 /usr/local/bin/gpg
|
|
fi
|
|
brew install gawk shellcheck
|
|
fi
|
|
|
|
# Windows
|
|
if [[ "$GITSECRET_DIST" == "windows" ]]; then
|
|
choco install make shellcheck -y
|
|
fi
|
|
|
|
# Linux:
|
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ -n "$KITCHEN_REGEXP" ]]; then
|
|
update_linux
|
|
install_ansible
|
|
fi
|