Skip to content

Commit 5959272

Browse files
calebmarchentCaleb Marchent
authored and
Caleb Marchent
committed
TravisCI build for Folly on MacOS
Use homebrew bootstrap script for process; Using travis apt add-on avoids it being called on MacOS.
1 parent 0d0b02a commit 5959272

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.travis.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,23 @@ matrix:
3131
include:
3232
- env: ['os_image=ubuntu:16.04', gcc_version=5]
3333
services: [docker]
34+
- os: osx
35+
36+
addons:
37+
apt:
38+
packages: python2.7
3439

3540
addons:
3641
apt:
3742
packages: python2.7
3843

3944
script:
40-
# We don't want to write the script inline because of Travis kludginess --
41-
# it looks like it escapes " and \ in scripts when using `matrix:`.
42-
- ./build/fbcode_builder/travis_docker_build.sh
45+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]];
46+
then
47+
folly/build/bootstrap-osx-homebrew.sh;
48+
else
49+
./build/fbcode_builder/travis_docker_build.sh;
50+
fi
4351

4452
notifications:
4553
webhooks: https://code.facebook.com/travis/webhook/

0 commit comments

Comments
 (0)