1

It happens to me that most of the builds are compiled correctly, but from time to time the same error appears (without changing any .travis.yml parameter)

The error is:

The command "sudo easy_install cpp-coveralls" failed and exited with 1 during .

Now my build got stucked on it when the previous builds have successfully passed this step without problems.

Why is it so randomly failing?

Qix - MONICA WAS MISTREATED
  • 14,451
  • 16
  • 82
  • 145

2 Answers2

0

try pip install cpp-coveralls --user `whoami`

edit:

  • pip install cpp-coveralls is the way to install package on python (instead of easy_install)
  • --user `whoami` is to install it without sudo, in a Travis container (like OP is doing)
Syl
  • 2,733
  • 2
  • 17
  • 20
0

Just went through this yesterday. I've attached a simplified version of the .travis.yml file I use for my project.

before_install:
  - pip install --user cpp-coveralls

after_success:
  - '$([ "$TRAVIS_OS_NAME" == "osx" ] && echo ~/Library/Python/2.7 || echo ~/.local)/bin/cpp-coveralls --gcov-options "\-lp"'

pip install cpp-coveralls --user

is indeed the correct way to do it, but where it ends up required a bit (a lot?) of research. The answer was simple, but incredibly un-documented.

Qix - MONICA WAS MISTREATED
  • 14,451
  • 16
  • 82
  • 145