Commit 007d6c2
committed
Simplify Travis CI macOS homebrew package install
Use Travis CI Homebrew addon to install packages, instead of manually
install them via shell commands.
According to the latest Travis CI "The macOS Build Environment" and
"Installing Dependencies" documentation:
> The Travis Homebrew addon is the simplest, fastest and most reliable
> way to install dependencies.
> By default, the Homebrew addon will not run `brew update` before
> installing packages. `brew update` can take a long time and slow down
> your builds. If you need more up-to-date versions of packages than the
> snapshot on the build VM has, you can add `update: true` to the addon
> configuration:
As Travis CI looks very confident about it, the original `brew update`
corresponding `update: true` in the addon is not enabled, unless some
issues were found without the update, hopefully can speed up the tests.
Reference:
- https://docs.travis-ci.com/user/reference/osx/#homebrew
- https://docs.travis-ci.com/user/installing-dependencies/#installing-packages-on-macos1 parent 3f490ea commit 007d6c2
1 file changed
+16
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
104 | 108 | | |
105 | | - | |
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
| |||
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
114 | 121 | | |
115 | | - | |
116 | 122 | | |
117 | 123 | | |
118 | 124 | | |
| |||
130 | 136 | | |
131 | 137 | | |
132 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
133 | 143 | | |
134 | | - | |
135 | 144 | | |
136 | 145 | | |
137 | 146 | | |
| |||
141 | 150 | | |
142 | 151 | | |
143 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
144 | 157 | | |
145 | | - | |
146 | 158 | | |
147 | 159 | | |
148 | 160 | | |
0 commit comments