forked from python-pillow/Pillow
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
201 changed files
with
3,342 additions
and
5,161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
# gather the coverage data | ||
sudo apt-get -qq install lcov | ||
lcov --capture --directory . -b . --output-file coverage.info | ||
# filter to remove system headers | ||
lcov --remove coverage.info '/usr/*' -o coverage.filtered.info | ||
# convert to json | ||
gem install coveralls-lcov | ||
coveralls-lcov -v -n coverage.filtered.info > coverage.c.json | ||
|
||
coverage report | ||
pip install coveralls-merge | ||
coveralls-merge coverage.c.json | ||
|
||
if [ "$DOCKER" == "" ]; then | ||
pip install pep8 pyflakes | ||
pep8 --statistics --count PIL/*.py | ||
pep8 --statistics --count Tests/*.py | ||
pyflakes *.py | tee >(wc -l) | ||
pyflakes PIL/*.py | tee >(wc -l) | ||
pyflakes Tests/*.py | tee >(wc -l) | ||
fi | ||
|
||
if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ] && [ "$DOCKER" == "" ]; then | ||
# Coverage and quality reports on just the latest diff. | ||
# (Installation is very slow on Py3, so just do it for Py2.) | ||
depends/diffcover-install.sh | ||
depends/diffcover-run.sh | ||
fi | ||
|
||
# after_all | ||
|
||
if [ "$TRAVIS_REPO_SLUG" = "python-pillow/Pillow" ] && [ "$TRAVIS_BRANCH" = "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then | ||
curl -Lo travis_after_all.py https://raw.github.com/dmakhno/travis_after_all/master/travis_after_all.py | ||
python travis_after_all.py | ||
export $(cat .to_export_back) | ||
if [ "$BUILD_LEADER" = "YES" ]; then | ||
if [ "$BUILD_AGGREGATE_STATUS" = "others_succeeded" ]; then | ||
echo "All jobs succeded! Triggering macOS build..." | ||
# Trigger a macOS build at the pillow-wheels repo | ||
./build_children.sh | ||
else | ||
echo "Some jobs failed" | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
sudo apt-get update | ||
sudo apt-get -qq install libfreetype6-dev liblcms2-dev\ | ||
python-qt4 ghostscript libffi-dev libjpeg-turbo-progs cmake imagemagick | ||
pip install cffi | ||
pip install nose | ||
pip install check-manifest | ||
pip install olefile | ||
# Pyroma tests sometimes hang on PyPy; skip | ||
if [ "$TRAVIS_PYTHON_VERSION" != "pypy" ]; then pip install pyroma; fi | ||
|
||
pip install coverage | ||
|
||
# docs only on python 2.7 | ||
if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then pip install -r requirements.txt ; fi | ||
|
||
# clean checkout for manifest | ||
mkdir /tmp/check-manifest && cp -a . /tmp/check-manifest | ||
|
||
# webp | ||
pushd depends && ./install_webp.sh && popd | ||
|
||
# openjpeg | ||
pushd depends && ./install_openjpeg.sh && popd | ||
|
||
# libimagequant | ||
pushd depends && ./install_imagequant.sh && popd | ||
|
||
# extra test images | ||
pushd depends && ./install_extra_test_images.sh && popd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
coverage erase | ||
python setup.py clean | ||
CFLAGS="-coverage" python setup.py build_ext --inplace | ||
|
||
coverage run --append --include=PIL/* selftest.py | ||
coverage run --append --include=PIL/* -m nose -vx Tests/test_*.py | ||
pushd /tmp/check-manifest && check-manifest --ignore ".coveragerc,.editorconfig,*.yml,*.yaml,tox.ini" && popd | ||
|
||
# Docs | ||
if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ]; then make install && make doccheck; fi |
Oops, something went wrong.