Skip to content

Commit

Permalink
ci,os-x: disable brew's default install cleanup
Browse files Browse the repository at this point in the history
Whenever running `brew install` and `brew cleanup` hasn't been run for 30
days, `brew cleanup` will be run.

For Travis-CI's OS-X images, this is often true, which just consumes time.

Travis-CI has an opt-out env-var `HOMEBREW_NO_INSTALL_CLEANUP` which
disables this behavior when set.
Most about it here:
  Homebrew/brew@8144667

`libiio` is not affected by this default `brew cleanup` behavior (yet).
However, since these scripts are propagated in other repos, then it makes
sense to have this behavior default here.

Signed-off-by: Alexandru Ardelean <[email protected]>
  • Loading branch information
commodo committed Nov 28, 2019
1 parent a345a8a commit 1036e51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CI/travis/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
export TRAVIS_API_URL="https://api.travis-ci.org"
LOCAL_BUILD_DIR=${LOCAL_BUILD_DIR:-build}

HOMEBREW_NO_INSTALL_CLEANUP=1
export HOMEBREW_NO_INSTALL_CLEANUP

COMMON_SCRIPTS="jobs_running_cnt.py inside_docker.sh"

echo_red() { printf "\033[1;31m$*\033[m\n"; }
Expand Down

0 comments on commit 1036e51

Please sign in to comment.