manuskript/package/prepare_osx.sh
Curtis Gedak 07c9ca5c5d Remove support for macOS X El Capitan (10.11) in Travis CI build
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.
2018-11-29 13:31:18 -07:00

22 lines
862 B
Bash
Executable file

#!/bin/bash
set -ev # display each line executed along with output
brew update
# Upgrade to python 3.x
brew upgrade python
brew install enchant
brew postinstall python # this installs pip
sudo -H pip3 install --upgrade pip setuptools wheel
pip3 install pyinstaller PyQt5 lxml pyenchant pytest pytest-faulthandler
brew install hunspell
# Fooling PyEnchant as described in the wiki.
# https://github.com/olivierkes/manuskript/wiki/Package-manuskript-for-OS-X
sudo touch /usr/local/share/aspell
#
# Note that if qt install is terminated by Travis CI then it is likely
# building from source instead of pouring from a homebrew bottle.
# Fix by choosing lowest osx_image value [1] for xcode that has a
# homebrew qt bottle [2].
# [1] https://docs.travis-ci.com/user/reference/osx#os-x-version
# [2] https://formulae.brew.sh/formula/qt
brew install qt