Pillow/.travis/after_success.sh

33 lines
985 B
Bash
Raw Normal View History

2017-01-19 18:54:54 +03:00
#!/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
2017-02-03 09:58:42 +03:00
pip install codecov
2017-01-19 18:54:54 +03:00
pip install coveralls-merge
coveralls-merge coverage.c.json
2017-02-03 09:58:42 +03:00
codecov
2017-01-19 18:54:54 +03:00
if [ "$DOCKER" == "" ]; then
2017-11-08 15:24:44 +03:00
pip install pyflakes pycodestyle
pyflakes *.py | tee >(wc -l)
pyflakes src/PIL/*.py | tee >(wc -l)
2017-11-08 15:19:56 +03:00
pyflakes Tests/*.py | tee >(wc -l)
pycodestyle --statistics --count src/PIL/*.py
2017-11-08 15:24:44 +03:00
pycodestyle --statistics --count Tests/*.py
fi
2017-01-19 18:54:54 +03:00
if [ "$TRAVIS_PYTHON_VERSION" == "2.7" ] && [ "$DOCKER" == "" ]; then
2017-11-08 15:19:56 +03:00
# 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