Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit fadd989

Browse files
author
Ian Sturdy
authored
Add an osx Travis build. (#148)
1 parent 68c05e3 commit fadd989

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

.travis.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
language: cpp
2-
os: linux
3-
dist: trusty
4-
sudo: false
2+
matrix:
3+
include:
4+
- os: linux
5+
dist: trusty
6+
sudo: false
7+
env: BAZEL_OS=linux
8+
- os: osx
9+
env: BAZEL_OS=darwin
10+
511
compiler: clang
612
env: BAZEL_OPTIONS="--local_resources=4096,2,1.0 --copt=-Werror=thread-safety"
713

814
before_install:
9-
- tools/format.sh
10-
- wget https://github.com/bazelbuild/bazel/releases/download/0.11.1/bazel-0.11.1-installer-linux-x86_64.sh
11-
- chmod +x bazel-0.11.1-installer-linux-x86_64.sh
12-
- ./bazel-0.11.1-installer-linux-x86_64.sh --user
15+
# OS X does not have clang-format by default, and has a different sed.
16+
- if \[ "$TRAVIS_OS_NAME" == "linux" \]; then
17+
tools/format.sh ;
18+
fi
19+
- wget https://github.com/bazelbuild/bazel/releases/download/0.11.1/bazel-0.11.1-installer-${BAZEL_OS}-x86_64.sh
20+
- chmod +x bazel-0.11.1-installer-${BAZEL_OS}-x86_64.sh
21+
- ./bazel-0.11.1-installer-${BAZEL_OS}-x86_64.sh --user
1322

1423
script:
1524
# We can't use --noshow_progress because Travis terminates the

tools/bazel.rc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# bazel configurations for running tests under sanitizers.
22
# Based on https://github.com/bazelment/trunk/blob/master/tools/bazel.rc
33

4+
# Needed by gRPC to build on some platforms.
5+
build --copt -DGRPC_BAZEL_BUILD
6+
47
# --config=asan : Address Sanitizer.
58
common:asan --copt -fsanitize=address
69
common:asan --copt -DADDRESS_SANITIZER

0 commit comments

Comments
 (0)