{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-build/scikit-ci/issues/16","repository_url":"https://api.github.com/repos/scikit-build/scikit-ci","labels_url":"https://api.github.com/repos/scikit-build/scikit-ci/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/scikit-build/scikit-ci/issues/16/comments","events_url":"https://api.github.com/repos/scikit-build/scikit-ci/issues/16/events","html_url":"https://github.com/scikit-build/scikit-ci/pull/16","id":186107806,"number":16,"title":"ci: Display normal error message when command fails while executing a step","user":{"login":"jcfr","id":219043,"avatar_url":"https://avatars.githubusercontent.com/u/219043?v=3","gravatar_id":"","url":"https://api.github.com/users/jcfr","html_url":"https://github.com/jcfr","followers_url":"https://api.github.com/users/jcfr/followers","following_url":"https://api.github.com/users/jcfr/following{/other_user}","gists_url":"https://api.github.com/users/jcfr/gists{/gist_id}","starred_url":"https://api.github.com/users/jcfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcfr/subscriptions","organizations_url":"https://api.github.com/users/jcfr/orgs","repos_url":"https://api.github.com/users/jcfr/repos","events_url":"https://api.github.com/users/jcfr/events{/privacy}","received_events_url":"https://api.github.com/users/jcfr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-29T23:50:16Z","updated_at":"2016-10-29T23:53:29Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scikit-build/scikit-ci/pulls/16","html_url":"https://github.com/scikit-build/scikit-ci/pull/16","diff_url":"https://github.com/scikit-build/scikit-ci/pull/16.diff","patch_url":"https://github.com/scikit-build/scikit-ci/pull/16.patch"},"body":"Given the following configuration file:\r\n\r\n```\r\nschema_version: \"0.5.0\"\r\ntest:\r\n  commands:\r\n    - echo \"This work\"\r\n    - python -c \"raise Exception('Ooops')\"\r\n```\r\n\r\n\r\nHere is the output:\r\n\r\n```\r\n$ ci\r\n[scikit-ci] Executing: echo \"This work\"\r\nThis work\r\n[scikit-ci] Executing: python -c \"raise Exception('Ooops')\"\r\nTraceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\nException: Ooops\r\n\r\nA command failed while executing TEST step.\r\n  Return code:\r\n    1\r\n  Command:\r\n    python -c \"raise Exception('Ooops')\"\r\n  Working directory:\r\n    /tmp\r\n\r\nPlease see above for more information.\r\n```\r\n\r\nBefore:\r\n\r\n```\r\n$ ci \r\n[scikit-ci] Executing: echo \"This work\"\r\nThis work\r\n[scikit-ci] Executing: python -c \"raise Exception('Ooops')\"\r\nTraceback (most recent call last):\r\n  File \"<string>\", line 1, in <module>\r\nException: Ooops\r\nTraceback (most recent call last):\r\n  File \"/home/jcfr/.virtualenvs/test-pip-install/bin/ci\", line 11, in <module>\r\n    load_entry_point('scikit-ci', 'console_scripts', 'ci')()\r\n  File \"/home/jcfr/Projects/scikit-ci/ci/__main__.py\", line 66, in main\r\n    args.step, force=args.force, with_dependencies=args.with_dependencies)\r\n  File \"/home/jcfr/Projects/scikit-ci/ci/driver.py\", line 310, in execute_step\r\n    execute_step(depends[-1], with_dependencies=with_dependencies)\r\n  File \"/home/jcfr/Projects/scikit-ci/ci/driver.py\", line 314, in execute_step\r\n    d.execute_commands(step)\r\n  File \"/home/jcfr/Projects/scikit-ci/ci/driver.py\", line 271, in execute_commands\r\n    self.check_call(cmd.replace(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\"), env=self.env)\r\n  File \"/home/jcfr/Projects/scikit-ci/ci/driver.py\", line 83, in check_call\r\n    return subprocess.check_call(*args, **kwds)\r\n  File \"/usr/lib/python2.7/subprocess.py\", line 540, in check_call\r\n    raise CalledProcessError(retcode, cmd)\r\nsubprocess.CalledProcessError: Command 'python -c \"raise Exception('Ooops')\"' returned non-zero exit status 1\r\n```"},"comment":{"url":"https://api.github.com/repos/scikit-build/scikit-ci/issues/comments/257122928","html_url":"https://github.com/scikit-build/scikit-ci/pull/16#issuecomment-257122928","issue_url":"https://api.github.com/repos/scikit-build/scikit-ci/issues/16","id":257122928,"user":{"login":"codecov-io","id":8655789,"avatar_url":"https://avatars.githubusercontent.com/u/8655789?v=3","gravatar_id":"","url":"https://api.github.com/users/codecov-io","html_url":"https://github.com/codecov-io","followers_url":"https://api.github.com/users/codecov-io/followers","following_url":"https://api.github.com/users/codecov-io/following{/other_user}","gists_url":"https://api.github.com/users/codecov-io/gists{/gist_id}","starred_url":"https://api.github.com/users/codecov-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecov-io/subscriptions","organizations_url":"https://api.github.com/users/codecov-io/orgs","repos_url":"https://api.github.com/users/codecov-io/repos","events_url":"https://api.github.com/users/codecov-io/events{/privacy}","received_events_url":"https://api.github.com/users/codecov-io/received_events","type":"User","site_admin":false},"created_at":"2016-10-29T23:53:29Z","updated_at":"2016-10-29T23:53:29Z","body":"## [Current coverage](https://codecov.io/gh/scikit-build/scikit-ci/pull/16?src=pr) is 95.81% (diff: 94.73%)\n> Merging [#16](https://codecov.io/gh/scikit-build/scikit-ci/pull/16?src=pr) into [master](https://codecov.io/gh/scikit-build/scikit-ci/branch/master?src=pr) will decrease coverage by **0.16%**\n\n```diff\n@@             master        #16   diff @@\n==========================================\n  Files             4          5     +1   \n  Lines           199        215    +16   \n  Methods           0          0          \n  Messages          0          0          \n  Branches         36         36          \n==========================================\n+ Hits            191        206    +15   \n- Misses            3          4     +1   \n  Partials          5          5          \n```\n\n> Powered by [Codecov](https://codecov.io?src=pr). Last update [bcc7fb9...b5e8fff](https://codecov.io/gh/scikit-build/scikit-ci/compare/bcc7fb93fa5dff7262500d267b4d61abac1da359...b5e8fff31131dfefa56c7acadefa6b486a6ef982?src=pr)"}}
{"actor":{"display_login":"codecov-io"}}