Recognize number of CPU cores on Mac OS X travis

This commit is contained in:
Sebastian Messmer 2016-02-12 13:17:35 +01:00
parent b5f14b81af
commit 59dbe54a75

View File

@ -17,7 +17,7 @@ addons:
- libcrypto++-dev - libcrypto++-dev
- libfuse-dev - libfuse-dev
install: install:
- export NUMCORES=`grep -c ^processor /proc/cpuinfo` - export NUMCORES=`grep -c ^processor /proc/cpuinfo` && if [ -n "$NUMCORES" ]; do export NUMCORES=`sysctl -n hw.ncpu`; done
- echo Using $NUMCORES cores - echo Using $NUMCORES cores
# Install boost # Install boost
- wget -O boost.tar.bz2 https://sourceforge.net/projects/boost/files/boost/1.56.0/boost_1_56_0.tar.bz2/download - wget -O boost.tar.bz2 https://sourceforge.net/projects/boost/files/boost/1.56.0/boost_1_56_0.tar.bz2/download