{"push_id":1025846717,"size":1,"distinct_size":1,"ref":"refs/heads/set-pipefail","head":"59d20c0df32276cc96223d0b61f19c706b7c4d5c","before":"cee6c5f61e9b989ae3acd9f44c776d6b17c501fb","commits":[{"sha":"59d20c0df32276cc96223d0b61f19c706b7c4d5c","author":{"email":"1876163cd388b483c334634371fa2b21fbd89b3c@gmail.com","name":"Sean Doyle"},"message":"Fail `ember:compile` if build subprocess fails\n\nCloses [#417][#417].\n\nThe following is the command `ember-cli-rails` generates for `rake\nember:compile`. It was generated using [the example application][repo].\n\n```bash\n/Users/seanpdoyle/src/ember-cli-rails-heroku-example/frontend/node_modules/.bin/ember build --environment 'development' --output-path '/Users/seanpdoyle/src/ember-cli-rails-heroku-example/tmp/ember-cli/apps/frontend' | /usr/bin/tee -a '/Users/seanpdoyle/src/ember-cli-rails-heroku-example/log/ember-frontend.development.log'\n```\n\nPipes are streaming, so the pipe to `tee` will open before the first\nprogram finishes writing, potentially ignoring a non-zero exit status.\n\nThe solution is to set the [`pipefail`][docs] option for the generated\nsub-command.\n\n[repo]: https://github.com/seanpdoyle/ember-cli-rails-heroku-example\n[#417]: https://github.com/thoughtbot/ember-cli-rails/issues/417\n[docs]: http://www.gnu.org/software/bash/manual/html_node/Pipelines.html","distinct":true,"url":"https://api.github.com/repos/thoughtbot/ember-cli-rails/commits/59d20c0df32276cc96223d0b61f19c706b7c4d5c"}]}