Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add workaround for brew build failure #885

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 2 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,7 @@ script: tools/travis.sh

matrix:
include:
- env: TIG_BUILD=valgrind
script: tools/travis.sh
- env: TIG_BUILD=address-sanitizer
- os: osx
env: TIG_BUILD=brew
compiler: clang
# LeakSanitizer requires ptrace capabilities
# https://github.com/travis-ci/travis-ci/issues/9033
sudo: required
script: tools/travis.sh
- if: branch = master
os: osx
env:
compiler: clang
script: brew install --HEAD tig
- if: branch = master
os: osx
env:
compiler: gcc
script: brew install --HEAD tig
6 changes: 6 additions & 0 deletions tools/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,17 @@ build_valgrind() {
make all-debug test TEST_OPTS=valgrind
}

build_brew() {
brew update
brew install --HEAD tig
}

case "$TIG_BUILD" in
config.make) build_config_make ;;
autoconf) build_autoconf ;;
address-sanitizer) build_address_sanitizer ;;
valgrind) build_valgrind ;;
brew) build_brew ;;

*)
echo "Unknown config: $TIG_BUILD"
Expand Down