Skip to content

Instantly share code, notes, and snippets.

@stevepeak
Last active September 23, 2015 08:13
Show Gist options
  • Save stevepeak/9434c1b4076f4db10d62 to your computer and use it in GitHub Desktop.
Save stevepeak/9434c1b4076f4db10d62 to your computer and use it in GitHub Desktop.

This extract is from an SSH from this build on a Java machine.

Below is how the path I'm hoping Circle will add. As demonstraged below when install a python package that has a cli it is not availalbe without appending its location.

# install codecov
ubuntu@box123:~$ pip install --user codecov
# it was already installed in my circle.yml build step
Requirement already satisfied (use --upgrade to upgrade): codecov in ./.local/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): requests>=2.0.0 in /usr/lib/python2.7/dist-packages (from codecov)
Requirement already satisfied (use --upgrade to upgrade): coverage in ./.local/lib/python2.7/site-packages (from codecov)
ubuntu@box123:~$ which codecov
# command does not exist...
ubuntu@box123:~$ export PATH="/home/ubuntu/.local/bin:$PATH"
# appending this path above will result in the command being found
ubuntu@box123:~$ which codecov
/home/ubuntu/.local/bin/codecov
# Bingo!
ubuntu@box123:~$ codecov --version
Codecov py-v1.4.1 - https://codecov.io/

My request: please add /home/ubuntu/.local/bin to the $PATH by default for all CI builds. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment