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

(cherry picked from commit 695feea541)
This commit is contained in:
Jordan Borean 2018-12-14 10:46:16 +10:00 committed by Matt Clay
parent de9647f260
commit 314e9c02f8
3 changed files with 12 additions and 0 deletions

View file

@ -55,6 +55,10 @@
update_homebrew: no
become: yes
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:
- ansible_python_version.split('.')[0] == '2'
- ansible_os_family == 'Darwin'

View file

@ -79,6 +79,10 @@
become: yes
become_user: "{{ brew_stat.stat.pw_name }}"
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
pkgng:

View file

@ -48,3 +48,7 @@
become: yes
become_user: "{{ brew_stat.stat.pw_name }}"
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