2016-06-28 21:53:08 +02:00
|
|
|
#!/bin/bash
|
2016-08-23 20:07:12 +02:00
|
|
|
|
2016-08-28 15:10:43 +02:00
|
|
|
# for executing in non travis environment
|
|
|
|
[ -z "$TRAVIS_OS_NAME" ] && TRAVIS_OS_NAME="$( uname -s | tr '[:upper:]' '[:lower:]' )"
|
|
|
|
|
2016-06-28 21:53:08 +02:00
|
|
|
# install osx deps for hyperion compile
|
2016-08-28 15:10:43 +02:00
|
|
|
if [[ $TRAVIS_OS_NAME == 'osx' || $TRAVIS_OS_NAME == 'darwin' ]]
|
2016-08-23 20:07:12 +02:00
|
|
|
then
|
2016-06-28 21:53:08 +02:00
|
|
|
echo "Install OSX deps"
|
2016-08-07 18:39:45 +02:00
|
|
|
time brew update
|
|
|
|
time brew install qt5 || true
|
|
|
|
time brew install libusb || true
|
|
|
|
time brew install cmake || true
|
|
|
|
time brew install doxygen || true
|
2016-06-28 21:53:08 +02:00
|
|
|
|
|
|
|
# install linux deps for hyperion compile
|
2016-08-28 15:10:43 +02:00
|
|
|
elif [[ $TRAVIS_OS_NAME == 'linux' ]]
|
2016-08-23 20:07:12 +02:00
|
|
|
then
|
2016-06-28 21:53:08 +02:00
|
|
|
echo "Install linux deps"
|
2016-08-07 18:39:45 +02:00
|
|
|
sudo apt-get -qq update
|
|
|
|
sudo apt-get install -qq -y qtbase5-dev libqt5serialport5-dev libusb-1.0-0-dev python-dev libxrender-dev libavahi-core-dev libavahi-compat-libdnssd-dev doxygen
|
2016-08-28 15:10:43 +02:00
|
|
|
else
|
|
|
|
echo "Unsupported platform: $TRAVIS_OS_NAME"
|
|
|
|
exit 5
|
2016-06-28 21:53:08 +02:00
|
|
|
fi
|
|
|
|
|