The Travis CI builds for macOS X are failing because these now
timeout. This happens because qt is being built from source instead
of being installed from a bottle.
Note that by default the Travis CI will terminate a build after 10
minutes if no output has been received. Unfortunately building qt
from source code may take hours.
To address this issue, choose a macOS X version that has a homebrew
bottle for qt [1].
[1] https://formulae.brew.sh/formula/qt
The homebrew project currently lists having a qt bottle for:
- Mojave (10.14)
- High Sierra (10.13)
- Sierra (10.12)
No bottle is listed for macOS El Capitan (10.11)
In order to support as many versions of macOS X as possible, choose
the lowest osx_image value [2] that is currently supported with a
homebrew bottle.
[2] https://docs.travis-ci.com/user/reference/osx#os-x-version
At this time osx_image value xcode8.3 is listed as supporting OS X
10.12.
The Travis CI builds are failing with the following messages:
sudo -H pip3 install --upgrade pip setuptools wheel
sudo: pip3: command not found
The command "if [ "$TRAVIS_OS_NAME" = "osx" ]; then bash package/prepare_osx.sh; fi" failed and exited with 1 during .
It appears that homebrew recipes for Python3 and pip3 install and
invocation keep changing (see Homebrew version after 1.5).
https://stackoverflow.com/questions/17271319/how-do-i-install-pip-on-macos-or-os-x
The Travis CI build reports the following in the messages from
executing package/prepare_osx.sh:
sudo pip3 install --upgrade pip setuptools wheel
The directory '/Users/travis/Library/Caches/pip/http' or its \
parent directory is not owned by the current user and the cache \
has been disabled. Please check the permissions and owner of that \
directory. If executing pip with sudo, you may want sudo's -H \
flag.
The directory '/Users/travis/Library/Caches/pip' or its parent \
directory is not owned by the current user and caching wheels has \
been disabled. check the permissions and owner of that \
directory. If executing pip with sudo, you may want sudo's -H \
flag.
In an effort to address this issue, add "-H" flag to sudo.
The Travis CI builds have been failing with the following message:
The command "if [ "$TRAVIS_OS_NAME" = "osx" ]; then \
bash package/prepare_osx.sh; fi" \
failed and exited with 1 during .
This above line of code is from .travis.yml. Further examination of
the log from executing package/prepare_osx.sh shows the following
message:
<snip>
brew install python3 enchant
Error: python 2.7.12_1 is already installed
To upgrade to 3.6.5, run `brew upgrade python`
<snip>
Based on this message it appears that the method to install python3
has changed. Hence change command to upgrade python 2.x to 3.x.