Skip to content

Commit dbdf7cf

Browse files
committed
Travis CI: QT5 added
1 parent f2cc2ec commit dbdf7cf

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

.travis/before_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
2020
echo "Installing cmake now"
2121
wget ${CMAKE_DOWNLOAD_PATH}/$CMAKE_FILENAME
2222
tar xfz $CMAKE_FILENAME
23-
export PATH="`pwd`/${CMAKE_FILENAME%%.*}/CMake.app/Contents/bin":$PATH:
23+
export PATH="`pwd`/${CMAKE_FILENAME%%.tar.gz}/CMake.app/Contents/bin":$PATH:
2424
echo $PATH
2525

2626
# OS X: update brew cache:

.travis/install.sh

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,33 @@
11
#!/bin/bash
22

33
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
4-
# Install package dependencies for Mac OS X:
5-
brew unlink cmake
6-
brew install python libusb qt
7-
# Install numpy via pip:
8-
easy_install pip
9-
pip install numpy
4+
if [[ $OPTION == 'modern' ]]; then
5+
# Install package dependencies for Mac OS X:
6+
brew unlink cmake
7+
brew install python libusb qt5
8+
export CMAKE_PREFIX_PATH=/usr/local/opt/qt5
9+
# Install numpy via pip:
10+
easy_install pip
11+
pip install numpy
12+
else
13+
# Install package dependencies for Mac OS X:
14+
brew unlink cmake
15+
brew install python libusb qt
16+
# Install numpy via pip:
17+
easy_install pip
18+
pip install numpy
19+
fi
20+
1021
else
11-
# Install package dependencies for Linux:
12-
sudo apt-get install -y libusb-1.0-0 libusb-1.0-0-dev python2.7 python-numpy cmake qt4-dev-tools
22+
23+
if [[ $OPTION == 'modern' ]]; then
24+
# Install package dependencies for Linux:
25+
sudo apt-get install -y libusb-1.0-0 libusb-1.0-0-dev python2.7 python-numpy cmake qt5-default
26+
else
27+
# Install package dependencies for Linux:
28+
sudo apt-get install -y libusb-1.0-0 libusb-1.0-0-dev python2.7 python-numpy cmake qt4-dev-tools
29+
fi
30+
1331
fi
1432

1533

0 commit comments

Comments
 (0)