/bin/bash: codecov: command not found


#1

I am migrating project to Circle CI 2.0. I can’t create own docker image.
Here is my config.yml:

version: 2

jobs:
  build:
    docker:
      - image: circleci/android:api-26-alpha
      - image: circleci/python:3.6.1
    steps:
      - checkout
      - run:
          name: pre-dependencies
          command: pip install --user codecov
      - run: sdkmanager --licenses
      - run:
          name: override-test
          command: ./gradlew --info install test coverage
      - run:
          name: post-test
          command: codecov

The last command is failing with this error:

/bin/bash: codecov: command not found
Exited with code 127

Any hints how to fix it?
Thanks.


#2

The command codecov needs to be installed. Where is it normally sourced from? Is it in the Ubuntu repo?


#3

It was installed through pip install. I found the solution: I have to add sudo, so after I add sudo pip install --user codecov, it works.


#4

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.