# Homebrew addon does not work if before\_install step is skipped

**URL:** https://travis-ci.community/t/homebrew-addon-does-not-work-if-before-install-step-is-skipped/1564
**Category:** macOS
**Tags:** homebrew
**Created:** [December 22, 2018, 12:03pm UTC](https://travis-ci.community/t/homebrew-addon-does-not-work-if-before-install-step-is-skipped/1564 "2018-12-22T12:03:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![diegoferigo](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/diegoferigo/32/825_2.png) [@diegoferigo](https://travis-ci.community/u/diegoferigo)
#### Post date: [December 22, 2018, 12:03pm UTC](https://travis-ci.community/t/homebrew-addon-does-not-work-if-before-install-step-is-skipped/1564/1 "2018-12-22T12:03:04Z")

</div>

Refer to the following builds:

[Osx stage without `before_install`](https://travis-ci.com/diegoferigo/WB-Toolbox/builds/95603641) - [commit](https://github.com/diegoferigo/WB-Toolbox/commit/e234cebd13c988edbfcc2d67c9f212b6858f358d)  
[Osx stage with `before_install`](https://travis-ci.com/diegoferigo/WB-Toolbox/builds/95603680) - [commit](https://github.com/diegoferigo/WB-Toolbox/commit/87182909e3607645b77fe615fe2dfbecf881fc4f)

For a more complete overview, check [this branch](https://github.com/diegoferigo/WB-Toolbox/commits/travis-homebrew-addon).

---

<div class="post-metadata">

### Author: ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)
#### Post date: [December 22, 2018, 12:52pm UTC](https://travis-ci.community/t/homebrew-addon-does-not-work-if-before-install-step-is-skipped/1564/2 "2018-12-22T12:52:00Z")

</div>

Thanks for the report. Technically speaking, `before_install` is not missing, but it’s [skipped](https://github.com/diegoferigo/WB-Toolbox/blob/e234cebd13c988edbfcc2d67c9f212b6858f358d/.travis.yml#L175) entirely, along with the addon. I realize that this is still a problem, but this distinction is important.

---

<div class="post-metadata">

### Author: ![diegoferigo](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/diegoferigo/32/825_2.png) [@diegoferigo](https://travis-ci.community/u/diegoferigo)
#### Post date: [December 22, 2018, 1:07pm UTC](https://travis-ci.community/t/homebrew-addon-does-not-work-if-before-install-step-is-skipped/1564/3 "2018-12-22T13:07:24Z")

</div>

Thanks for the prompt reply! Yes, I would expect that the homebrew addon would run independently to the enabled steps.

In the linux case (refer to the `deploy` stage), the `before_install` step is skipped in the same way, but the `apt` addon runs as expected.

(Title edited accordingly)
