conditionally run tests on pull requests

http://docs.travis-ci.com/user/pull-requests/#Security-Restrictions-when-testing-Pull-Requests