I think the magic comment has to be the first line in the file.  I suspect this is why travis is failing.