Skip to content

Commit 6a34068

Browse files
committed
travis BUGFIX install fixed versions of codecov and twine
This fixes two problems seen during deployment of build artifacts: The first one is: ~# codecov ... Error running `gcov -pb /home/travis/build/CESNET/libyang/build/CMakeFiles/compat.dir/compat/compat.c.gcno`: [Errno 2] No such file or directory Error: 'NoneType' object has no attribute 'replace' Which is a bug introduced in a recent version of codecov. Use a fixed version that we know works. And the second one: ~# twine upload --skip-existing build/python/dist/* Uploading distributions to https://upload.pypi.org/legacy/ TypeError: expected string or bytes-like object Which seems related to specific a metadata 2.1 field in setup.py: "description_content_type". The version of twine provided by ubuntu 18.04 is too old for this. Install a recent version of twine with pip to fix the problem. Use pip3 for both codecov and twine as pip (python 2) may have problems with recent versions of python packages. Signed-off-by: Robin Jarry <[email protected]>
1 parent 7de0d22 commit 6a34068

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ before_install:
4444
- cmake .. && make -j2 && sudo make install
4545
- cd ../..
4646
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
47-
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; sudo apt-get install -y valgrind libpcre3-dev python3-dev swig python3-cffi python3-setuptools twine; fi
48-
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$CC" = "gcc" -a "$TRAVIS_ARCH" = "amd64" ]; then pip install --user codecov; export CFLAGS="-coverage"; fi
47+
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; sudo apt-get install -y valgrind libpcre3-dev python3-dev swig python3-cffi python3-setuptools python3-pip; fi
48+
- if [ "$TRAVIS_OS_NAME" = "linux" -a "$CC" = "gcc" -a "$TRAVIS_ARCH" = "amd64" ]; then pip3 install --user codecov==2.0.22 twine==3.1.1; export CFLAGS="-coverage"; fi
4949

5050
script:
5151
- mkdir build && cd build

0 commit comments

Comments
 (0)