See https://travis-ci.org/doctrine/annotations/jobs/7362837 where Travis ran twice: once in your before-script, and once in the default script (as there was no explicit script)