summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-05-17 15:55:25 +0200
committerMax Kellermann <max@musicpd.org>2017-05-17 15:59:25 +0200
commitb31bd37a303027b5b7fd99cab5549eddd4c222d8 (patch)
tree0a30fc5853d17216cfea07351b923230f72f7035 /.travis.yml
parent78faee8c7cb4e4b24256d42e8df8e48e1ffc0b52 (diff)
.travis.yml: check $TRAVIS_OS_NAME
Prepare for Mac OS X support by omitting those Ubuntu-specific commands.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 27a17c4eb..b03fb7f23 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -19,15 +19,15 @@ compiler:
before_install:
# C++14
- - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- - sudo apt-get update -qq
+ - test "$TRAVIS_OS_NAME" != "linux" || sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
+ - test "$TRAVIS_OS_NAME" != "linux" || sudo apt-get update -qq
install:
# C++14
- - sudo apt-get install -qq g++-5
+ - test "$TRAVIS_OS_NAME" != "linux" || sudo apt-get install -qq g++-5
script:
- - export CC=gcc-5 CXX=g++-5
+ - test "$TRAVIS_OS_NAME" != "linux" || export CC=gcc-5 CXX=g++-5
- ./autogen.sh
- ./configure --enable-test
- make