ci: Pin codecov version to avoid nondeterministic behaviour.

* This fixes the gov find error when dicovering files.
From v2.0.16, codecov-python uses "find" to discover files which
is buggy on some platforms.
Filed issue as https://github.com/codecov/codecov-python/issues/250
This commit is contained in:
Aman Agrawal 2020-05-14 11:45:03 +05:30 committed by Tim Abbott
parent 370d1b6ca7
commit f4e70714b4
1 changed files with 4 additions and 1 deletions

View File

@ -96,7 +96,10 @@ aliases:
name: upload coverage report
command: |
. /srv/zulip-py3-venv/bin/activate
pip install codecov && codecov \
# codecov version is fixed here, since future versions of it
# use "find" for locating files which is buggy on some platforms.
# See https://github.com/codecov/codecov-python/issues/250
pip install codecov==2.0.15 && codecov \
|| echo "Error in uploading coverage reports to codecov.io."
- &build_production