.travis.yml: add OS X build, APT caching

This commit is contained in:
John Hood
2015-09-24 12:44:25 -04:00
parent 29112b410a
commit 4a01dbdb06
+10
View File
@@ -1,3 +1,10 @@
os:
- linux
- osx
cache:
- apt
language: cpp language: cpp
sudo: required sudo: required
services: docker services: docker
@@ -10,6 +17,9 @@ addons:
- libutempter-dev - libutempter-dev
before_install: before_install:
- if test "$TRAVIS_OS_NAME" = osx; then brew update; fi
- if test "$TRAVIS_OS_NAME" = osx; then brew install protobuf tmux; fi
- if test "$TRAVIS_OS_NAME" = osx; then brew outdated protobuf tmux || brew upgrade protobuf tmux; fi
- git fetch --tags --unshallow - git fetch --tags --unshallow
script: script: