Add macOS build to travis.
Simon Nagl committed
Jan 17, 2017 at 12:14 UTC
73990d380810915538a796e0a91150566ebd0e01
1 file changed
+8
-2
.travis.yml
+8
-2
@@ -2,6 +2,9 @@ dist: precise
2
#
3
# C includes autotools and make by default
4
language: c
5
+os:
6
+ - linux
7
+ - osx
8
compiler:
9
- gcc
10
- clang
@@ -19,12 +22,14 @@ addons:
22
before_install:
23
- eval "$(ssh-agent -s)"
24
- ./.travis/decrypt-if-have-key decb6f6387c4
25
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
26
+ - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gpg fakeroot ossp-uuid xz; fi
27
#
28
# Run
29
before_script:
30
- gpg --import packaging/gpg.keys
26
- # Run the commit hooks in case the developer didn't
27
- - git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 | ./packaging/check-files -
31
+ # Run the commit hooks in case the developer didn't (Does not work for osx)
32
+ - if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then git diff 4b825dc642cb6eb9a060e54bf8d69288fbee4904 | ./packaging/check-files -; fi
33
script:
34
# make release packages
35
- fakeroot ./packaging/git-build
@@ -47,5 +52,6 @@ deploy:
52
file: "netdata*.tar.*"
53
on:
54
condition: $CC = gcc
55
+ condition: $TRAVIS_OS_NAME = linux
56
repo: firehol/netdata
57
tags: true