-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
47 lines (47 loc) · 1.46 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
os:
- osx
osx_image: xcode8.3
compiler:
- clang
- gcc
env:
- EXTRA=
- EXTRA=--devel
- EXTRA=--HEAD
matrix:
include:
# GCC on an Xcode 9.2 machine has trouble with syslog.h
# See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82200
- osx_image: xcode9.2
compiler: clang
env: EXTRA=
- osx_image: xcode9.2
compiler: clang
env: EXTRA=--devel
- osx_image: xcode9.2
compiler: clang
env: EXTRA=--HEAD
language: c
before_install:
# Fetch the latest Homebrew, for the freshest bugs
- export HOMEBREW_DEVELOPER=1
- env
- brew update
# on the xcode8.3 machine, oclint breaks the install of gcc
- brew cask uninstall oclint
- brew tap leedm777/homebrew-asterisk
# checkout the current branch for installing PJSIP
- git -C $(brew --prefix)/Homebrew/Library/Taps/leedm777/homebrew-asterisk pull origin ${TRAVIS_BRANCH}
# upgrade only outdated dependencies
- comm -12 <(brew deps --include-build ./asterisk.rb) <(brew outdated) | xargs brew upgrade
# print some versions, because debugging
- brew --version
- brew ls --versions
install:
# install pjsip verbosely, in case we need to debug that build, too
# We also have to install it via the tap, b/c it won't be picked up as a
# dependency if we install it as ./pjsip-asterisk.rb
- brew install pjsip-asterisk --verbose
- brew install --only-dependencies ./asterisk.rb
script:
- brew reinstall ./asterisk.rb --verbose --with-dev-mode --with-${CC} ${EXTRA}