0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 08:41:02 +08:00

Fix2 osx qt5 package on travis

This commit is contained in:
Sergey Yagovtsev 2017-06-19 00:14:35 +03:00
parent db4483b32b
commit 68dae5b589

View File

@ -40,6 +40,8 @@ script:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then - if [ "$TRAVIS_OS_NAME" = "linux" ]; then
source /opt/qt55/bin/qt55-env.sh; source /opt/qt55/bin/qt55-env.sh;
qmake -v; qmake -v;
else
export PATH=/usr/local/opt/qt/bin:$PATH;
fi fi
- cmake -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_C_COMPILER=$C_COMPILER .. && make -j3 - cmake -DCMAKE_CXX_COMPILER=$CXX_COMPILER -DCMAKE_C_COMPILER=$C_COMPILER .. && make -j3
after_success: after_success:
@ -58,10 +60,15 @@ install:
else else
brew install qt5; brew install qt5;
brew link --force qt5; brew link --force qt5;
brew linkapps qt5;
export HOMEBREW_QT5_VERSION=$(brew list --versions qt5 | rev | cut -d' ' -f1 | rev); export HOMEBREW_QT5_VERSION=$(brew list --versions qt5 | rev | cut -d' ' -f1 | rev);
ln -s /usr/local/Cellar/qt5/$HOMEBREW_QT5_VERSION/mkspecs /usr/local/mkspecs; ln -s /usr/local/Cellar/qt5/$HOMEBREW_QT5_VERSION/mkspecs /usr/local/mkspecs;
ln -s /usr/local/Cellar/qt5/$HOMEBREW_QT5_VERSION/plugins /usr/local/plugins; ln -s /usr/local/Cellar/qt5/$HOMEBREW_QT5_VERSION/plugins /usr/local/plugins;
echo "ls -l /usr/local/mkspecs";
ls -l /usr/local/mkspecs;
echo "ls -l /usr/local/plugins";
ls -l /usr/local/plugins;
echo "/usr/local/Cellar/qt5/";
ls -l /usr/local/Cellar/qt5/;
fi fi