Run command if and only if tests fail

Just to be explicit, that means the test: post: command runs after every build right?

@levlaz I think this would be useful, having specific hooks for after_fail and after_success. These seem like very common operations to me.

I’d love to see something like:

test:
  after_success: 
    - "sh beer.sh"
  after_fail:
    - "sh more-hacking.sh"
5 Likes