summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorSimon Nagl <simonnagl@aim.com>2017-01-17 12:14:28 +0100
committerSimon Nagl <simonnagl@aim.com>2017-02-06 13:59:35 +0100
commit73990d380810915538a796e0a91150566ebd0e01 (patch)
tree71a47e02d488fe34f505c0fe19adfebaaac61f68 /.travis.yml
parent70417d058f73384caee1224c9c729c394834170b (diff)
Add macOS build to travis.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml10
1 files changed, 8 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 5968c1251f..f1ecba4dd3 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,6 +2,9 @@ dist: precise
#
# C includes autotools and make by default
language: c
+os:
+ - linux
+ - osx
compiler:
- gcc
- clang
@@ -19,12 +22,14 @@ addons:
before_install:
- eval "$(ssh-agent -s)"
- ./.travis/decrypt-if-have-key decb6f6387c4
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gpg fakeroot ossp-uuid xz; fi
#
# Run
before_script:
- gpg --import packaging/gpg.keys
- # Run the commit hooks in case the developer didn't
- - git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 | ./packaging/check-files -
+ # Run the commit hooks in case the developer didn't (Does not work for osx)
+ - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 | ./packaging/check-files -; fi
script:
# make release packages
- fakeroot ./packaging/git-build
@@ -47,5 +52,6 @@ deploy:
file: "netdata*.tar.*"
on:
condition: $CC = gcc
+ condition: $TRAVIS_OS_NAME = linux
repo: firehol/netdata
tags: true