Skip to content

Commit

Permalink
Install libimagequant for Travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed May 6, 2016
1 parent eb354be commit 4b260ac
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ install:
# openjpeg
- pushd depends && ./install_openjpeg.sh && popd

# libimagequant
- pushd depends && ./install_imagequant.sh && popd

script:
- if [ "$TRAVIS_PYTHON_VERSION" != "nightly" ]; then coverage erase; fi
- python setup.py clean
Expand Down
4 changes: 2 additions & 2 deletions depends/README.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Depends
=======

``install_openjpeg.sh`` and ``install_webp.sh`` can be used to
download, build & install non-packaged dependencies; useful for
``install_openjpeg.sh``, ``install_webp.sh`` and ``install_imagequant.sh`` can
be used to download, build & install non-packaged dependencies; useful for
testing with Travis CI.

The other scripts can be used to install all of the dependencies for
Expand Down
1 change: 1 addition & 0 deletions depends/debian_8.2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ sudo apt-get -y install libtiff5-dev libjpeg62-turbo-dev zlib1g-dev \
python-tk python3-tk

./install_openjpeg.sh
./install_imagequant.sh
12 changes: 12 additions & 0 deletions depends/install_imagequant.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# install libimagequant

git clone https://github.com/pornel/pngquant

pushd pngquant

make -C lib shared
sudo cp lib/libimagequant.so* /usr/lib/
sudo cp lib/libimagequant.h /usr/include/

popd
1 change: 1 addition & 0 deletions depends/ubuntu_12.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ sudo apt-get install libtiff4-dev libjpeg8-dev zlib1g-dev \

./install_openjpeg.sh
./install_webp.sh
./install_imagequant.sh
1 change: 1 addition & 0 deletions depends/ubuntu_14.04.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ sudo apt-get -y install libtiff5-dev libjpeg8-dev zlib1g-dev \
python-tk python3-tk

./install_openjpeg.sh
./install_imagequant.sh

0 comments on commit 4b260ac

Please sign in to comment.