rssguard/resources/scripts/.travis-before-install.sh

28 lines
833 B
Bash
Raw Normal View History

2016-08-24 10:37:48 +02:00
#!/bin/sh
2016-08-24 11:04:33 +02:00
if test "$TRAVIS_OS_NAME" = "osx"; then
2016-08-24 10:37:48 +02:00
# Mac OS X.
brew update
brew install p7zip
brew link --force p7zip
2016-08-24 10:47:51 +02:00
brew install qt5
2016-08-24 11:33:06 +02:00
brew link --force qt5
2016-08-24 12:51:12 +02:00
brew install curl
brew link --force curl
2017-11-14 11:35:52 +01:00
brew uninstall gnu-sed
2019-04-03 10:32:52 +02:00
brew install gnu-sed
2017-11-14 11:35:52 +01:00
brew link --force gnu-sed
2016-08-24 10:37:48 +02:00
else
# Linux.
2019-04-03 10:07:18 +02:00
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo add-apt-repository ppa:beineri/opt-qt-5.12.2-xenial -y
2016-08-24 11:04:33 +02:00
sudo apt-get update
2019-04-03 10:07:18 +02:00
sudo apt-get -y install gcc-7 g++-7 qt512tools qt512base qt512webengine qt512svg
sudo apt-get -y install openssl libssl-dev libgl1-mesa-dev
sudo update-alternatives --remove-all gcc
sudo update-alternatives --remove-all g++
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 50
2016-08-24 10:06:45 +02:00
fi