.travis.yml: check $TRAVIS_OS_NAME
Prepare for Mac OS X support by omitting those Ubuntu-specific commands.
This commit is contained in:
parent
78faee8c7c
commit
b31bd37a30
@ -19,15 +19,15 @@ compiler:
|
|||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
# C++14
|
# C++14
|
||||||
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
- test "$TRAVIS_OS_NAME" != "linux" || sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
|
||||||
- sudo apt-get update -qq
|
- test "$TRAVIS_OS_NAME" != "linux" || sudo apt-get update -qq
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# C++14
|
# C++14
|
||||||
- sudo apt-get install -qq g++-5
|
- test "$TRAVIS_OS_NAME" != "linux" || sudo apt-get install -qq g++-5
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- export CC=gcc-5 CXX=g++-5
|
- test "$TRAVIS_OS_NAME" != "linux" || export CC=gcc-5 CXX=g++-5
|
||||||
- ./autogen.sh
|
- ./autogen.sh
|
||||||
- ./configure --enable-test
|
- ./configure --enable-test
|
||||||
- make
|
- make
|
||||||
|
Loading…
Reference in New Issue
Block a user