{"action":"created","issue":{"url":"https://api.github.com/repos/codecov/codecov-python/issues/77","repository_url":"https://api.github.com/repos/codecov/codecov-python","labels_url":"https://api.github.com/repos/codecov/codecov-python/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/codecov/codecov-python/issues/77/comments","events_url":"https://api.github.com/repos/codecov/codecov-python/issues/77/events","html_url":"https://github.com/codecov/codecov-python/issues/77","id":170041574,"number":77,"title":"Empty $TRAVIS_PYTHON_NAME included regardless of --env / -e","user":{"login":"peterjc","id":63959,"avatar_url":"https://avatars.githubusercontent.com/u/63959?v=3","gravatar_id":"","url":"https://api.github.com/users/peterjc","html_url":"https://github.com/peterjc","followers_url":"https://api.github.com/users/peterjc/followers","following_url":"https://api.github.com/users/peterjc/following{/other_user}","gists_url":"https://api.github.com/users/peterjc/gists{/gist_id}","starred_url":"https://api.github.com/users/peterjc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterjc/subscriptions","organizations_url":"https://api.github.com/users/peterjc/orgs","repos_url":"https://api.github.com/users/peterjc/repos","events_url":"https://api.github.com/users/peterjc/events{/privacy}","received_events_url":"https://api.github.com/users/peterjc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-08T22:32:29Z","updated_at":"2016-08-09T08:51:02Z","closed_at":null,"body":"It seems (possibly due to a change on TravisCI), that ``$TRAVIS_PYTHON_NAME`` is currently empty, e.g.\r\n\r\nhttps://codecov.io/gh/ipython/ipython/commit/c17ff28cb1220a91d94fc0dc4b85ccee561fb68f/builds\r\n\r\nhttps://codecov.io/gh/biopython/biopython/commit/2d7619594003460b61fab62260ce50f6a344ba63/builds\r\n\r\nReading the code for ``--env`` aka ``-e``, the current behaviour is to automatically add some additional environment variables over-riding those specified at the command line, e.g. for TravisCI\r\n\r\n``` python\r\ninclude_env.add('TRAVIS_OS_NAME')\r\ninclude_env.add('TRAVIS_%s_NAME' % language.upper())\r\ninclude_env.add('TOXENV')\r\n```\r\n\r\nand for Snap:\r\n\r\n``` python\r\ninclude_env.add(os.getenv('DISPLAY'))\r\n```\r\n\r\nHaving these as the default is nice (if ``-env`` or ``-e`` is not used), but to me having them over-ride the command line is surprising. As per #75 the documentation here could be clearer?"},"comment":{"url":"https://api.github.com/repos/codecov/codecov-python/issues/comments/238492636","html_url":"https://github.com/codecov/codecov-python/issues/77#issuecomment-238492636","issue_url":"https://api.github.com/repos/codecov/codecov-python/issues/77","id":238492636,"user":{"login":"peterjc","id":63959,"avatar_url":"https://avatars.githubusercontent.com/u/63959?v=3","gravatar_id":"","url":"https://api.github.com/users/peterjc","html_url":"https://github.com/peterjc","followers_url":"https://api.github.com/users/peterjc/followers","following_url":"https://api.github.com/users/peterjc/following{/other_user}","gists_url":"https://api.github.com/users/peterjc/gists{/gist_id}","starred_url":"https://api.github.com/users/peterjc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterjc/subscriptions","organizations_url":"https://api.github.com/users/peterjc/orgs","repos_url":"https://api.github.com/users/peterjc/repos","events_url":"https://api.github.com/users/peterjc/events{/privacy}","received_events_url":"https://api.github.com/users/peterjc/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T08:51:02Z","updated_at":"2016-08-09T08:51:02Z","body":"Regarding the blank ``$TRAVIS_PYTHON_NAME`` and how I am running codecov under TravisCI:\r\n\r\nThe Biopython example https://codecov.io/gh/biopython/biopython/commit/2d7619594003460b61fab62260ce50f6a344ba63/builds shows six TravisCI builds, e.g.\r\n\r\n```\r\n2586.9\r\nAugust 8th 2016, 11:30:03 pm\r\nTOXENV=pypy-cover\r\nTRAVIS_OS_NAME=linux\r\nTRAVIS_PYTHON_NAME=\r\n```\r\n\r\nThat corresponds to the ``TOXENV=pypycov`` entry in the tox configuration file https://github.com/biopython/biopython/blob/2d7619594003460b61fab62260ce50f6a344ba63/.travis-tox.ini run from TravisCI via https://github.com/biopython/biopython/blob/2d7619594003460b61fab62260ce50f6a344ba63/.travis.yml\r\n\r\nNote as per https://github.com/codecov/codecov-python/pull/76 I am passing ``TRAVIS_*`` (which should include ``$TRAVIS_PYTHON_NAME``) to tox, so codecov should have access to it as set by TravisCI.\r\n\r\nThe second example https://codecov.io/gh/ipython/ipython/commit/c17ff28cb1220a91d94fc0dc4b85ccee561fb68f/builds is not mine. The do have a ``tox.ini`` file https://github.com/ipython/ipython/blob/c17ff28cb1220a91d94fc0dc4b85ccee561fb68f/tox.ini but it is not used under TravisCI: https://github.com/ipython/ipython/blob/c17ff28cb1220a91d94fc0dc4b85ccee561fb68f/.travis.yml\r\n\r\ni.e. The blank ``$TRAVIS_PYTHON_NAME`` appears to be stemming from something in these TravisCI Python builds. My guess is we are both using a TravisCI build matrix."}}
{"actor":{"display_login":"peterjc"}}