ansible-test: do not upgrade homebrew to speed up tests (#49914)

(cherry picked from commit 695feea541)
pull/50062/head
Jordan Borean 6 years ago committed by Matt Clay
parent 208ef77365
commit 841b5edc92

@ -55,6 +55,10 @@
update_homebrew: no update_homebrew: no
become: yes become: yes
become_user: "{{ brew_stat.stat.pw_name }}" become_user: "{{ brew_stat.stat.pw_name }}"
# Newer versions of brew want to compile a package which takes a long time. Do not upgrade homebrew until a
# proper solution can be found
environment:
HOMEBREW_NO_AUTO_UPDATE: True
when: when:
- ansible_python_version.split('.')[0] == '2' - ansible_python_version.split('.')[0] == '2'
- ansible_os_family == 'Darwin' - ansible_os_family == 'Darwin'

@ -79,6 +79,10 @@
become: yes become: yes
become_user: "{{ brew_stat.stat.pw_name }}" become_user: "{{ brew_stat.stat.pw_name }}"
when: ansible_distribution in ['MacOSX'] when: ansible_distribution in ['MacOSX']
# Newer versions of brew want to compile a package which takes a long time. Do not upgrade homebrew until a
# proper solution can be found
environment:
HOMEBREW_NO_AUTO_UPDATE: True
- name: Install 7zip package if we are on FreeBSD - name: Install 7zip package if we are on FreeBSD
pkgng: pkgng:

@ -48,3 +48,7 @@
become: yes become: yes
become_user: "{{ brew_stat.stat.pw_name }}" become_user: "{{ brew_stat.stat.pw_name }}"
when: ansible_pkg_mgr == 'homebrew' when: ansible_pkg_mgr == 'homebrew'
# Newer versions of brew want to compile a package which takes a long time. Do not upgrade homebrew until a
# proper solution can be found
environment:
HOMEBREW_NO_AUTO_UPDATE: True

Loading…
Cancel
Save