2017-01-19 18:54:54 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-04-06 15:23:41 +03:00
|
|
|
aptget_update()
|
|
|
|
{
|
|
|
|
if [ ! -z $1 ]; then
|
|
|
|
echo ""
|
|
|
|
echo "Retrying apt-get update..."
|
|
|
|
echo ""
|
|
|
|
fi
|
|
|
|
output=`sudo apt-get update 2>&1`
|
|
|
|
echo "$output"
|
|
|
|
if [[ $output == *[WE]:\ * ]]; then
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
aptget_update || aptget_update retry || aptget_update retry
|
|
|
|
|
2017-01-19 18:54:54 +03:00
|
|
|
set -e
|
|
|
|
|
2019-12-21 16:48:00 +03:00
|
|
|
sudo apt-get -qq install libfreetype6-dev liblcms2-dev python3-tk\
|
2019-07-20 11:33:08 +03:00
|
|
|
ghostscript libffi-dev libjpeg-turbo-progs libopenjp2-7-dev\
|
|
|
|
cmake imagemagick libharfbuzz-dev libfribidi-dev
|
2016-01-13 09:31:49 +03:00
|
|
|
|
2020-04-05 06:14:08 +03:00
|
|
|
pip install --upgrade pip
|
2018-09-21 12:43:49 +03:00
|
|
|
PYTHONOPTIMIZE=0 pip install cffi
|
2017-10-26 16:55:13 +03:00
|
|
|
pip install coverage
|
|
|
|
pip install olefile
|
2017-10-29 16:11:00 +03:00
|
|
|
pip install -U pytest
|
|
|
|
pip install -U pytest-cov
|
2017-06-09 00:00:34 +03:00
|
|
|
pip install pyroma
|
2017-11-17 22:47:05 +03:00
|
|
|
pip install test-image-results
|
2018-04-15 01:23:45 +03:00
|
|
|
pip install numpy
|
2020-08-13 00:58:10 +03:00
|
|
|
# TODO Remove when Travis/3.9 includes setuptools 49.3.2+:
|
|
|
|
if [ "$TRAVIS_PYTHON_VERSION" == "3.9-dev" ]; then pip install -U "setuptools>=49.3.2" ; fi
|
2019-10-07 04:41:33 +03:00
|
|
|
if [[ $TRAVIS_PYTHON_VERSION == 3.* ]]; then
|
2020-01-05 00:07:59 +03:00
|
|
|
# arm64, ppc64le, s390x CPUs:
|
|
|
|
# "ERROR: Could not find a version that satisfies the requirement pyqt5"
|
|
|
|
if [[ $TRAVIS_CPU_ARCH == "amd64" ]]; then
|
2020-06-01 14:59:05 +03:00
|
|
|
sudo apt-get -qq install libxcb-xinerama0 pyqt5-dev-tools
|
2020-04-05 06:14:08 +03:00
|
|
|
pip install pyqt5
|
2020-01-05 00:07:59 +03:00
|
|
|
fi
|
2019-10-07 04:41:33 +03:00
|
|
|
fi
|
2017-01-19 18:54:54 +03:00
|
|
|
|
2019-12-23 13:17:04 +03:00
|
|
|
# docs only on Python 3.8
|
|
|
|
if [ "$TRAVIS_PYTHON_VERSION" == "3.8" ]; then pip install -r requirements.txt ; fi
|
2017-01-19 18:54:54 +03:00
|
|
|
|
|
|
|
# webp
|
|
|
|
pushd depends && ./install_webp.sh && popd
|
|
|
|
|
|
|
|
# libimagequant
|
|
|
|
pushd depends && ./install_imagequant.sh && popd
|
|
|
|
|
2019-07-03 16:03:09 +03:00
|
|
|
# raqm
|
|
|
|
pushd depends && ./install_raqm.sh && popd
|
|
|
|
|
2017-01-19 18:54:54 +03:00
|
|
|
# extra test images
|
|
|
|
pushd depends && ./install_extra_test_images.sh && popd
|