Added duration variable to notification template. Fixes travis-ci/travis-ci#1427