travis-ci changes: remove ansible v2.3, fix brew build issue

* remove ansible avm v2.3 pip install
* work around perlbrew/build issue #305 with 'brew update' before installs
pull/301/head^2
Josh Rabinowitz 6 years ago committed by GitHub
parent 2047a0f11b
commit 711a6889c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,14 +7,10 @@ set -e
# What version of avm setup to use
echo "Setting up Ansible Version Manager"
AVM_VERSION="v1.0.0"
## Install Ansible 2.3.1 using pip and label it 'v2.3'
export ANSIBLE_VERSIONS_0="2.3.1.0"
export INSTALL_TYPE_0="pip"
export ANSIBLE_LABEL_0="v2.3"
## Install Ansible 2.5.X using pip and label it 'v2.5'
export ANSIBLE_VERSIONS_1="2.5.0.0"
export INSTALL_TYPE_1="pip"
export ANSIBLE_LABEL_1="v2.5"
export ANSIBLE_VERSIONS_0="2.5.0.0"
export INSTALL_TYPE_0="pip"
export ANSIBLE_LABEL_0="v2.5"
# Whats the default version
export ANSIBLE_DEFAULT_VERSION="v2.5"

@ -11,13 +11,14 @@ function update_linux() {
function install_ansible {
bash .ci/ansible-setup.sh
# pyOpen, ndg-* and pyasn1 are for 'InsecurePlatformWarning' error
~/.avm/v2.3/venv/bin/pip install netaddr ansible-lint pyOpenSSL ndg-httpsclient pyasn1
~/.avm/v2.5/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

Loading…
Cancel
Save