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"
|
2019-01-07 23:33:27 +01:00
|
|
|
brew update
|
|
|
|
brew install qt5 || true
|
|
|
|
brew upgrade python3 || true
|
|
|
|
brew upgrade libusb || true
|
|
|
|
brew upgrade cmake || true
|
|
|
|
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"
|
2019-01-06 19:49:56 +01:00
|
|
|
#sudo apt-get -qq update
|
|
|
|
#sudo apt-get install -qq -y qtbase5-dev libqt5serialport5-dev libusb-1.0-0-dev python3-dev libxrender-dev libavahi-core-dev libavahi-compat-libdnssd-dev doxygen expect
|
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
|