seriema / angular-apimock

Automatically route your API calls to static JSON files, for hiccup free front–end development.
johansson.jp/angular-apimock
MIT License
65 stars 8 forks source link

Fix: don't run SauceLabs tests on PR's #36

Closed seriema closed 9 years ago

seriema commented 9 years ago

Testing CI stuff is hard… ;) Doing this as my own PR now so I can amend commits until it works as expected.

I should’ve read the docs better: “The environment variable ${TRAVIS_PULL_REQUEST} is set to "false" when the build is for a normal branch commit. When the build is for a pull request, it will contain the pull request’s number.”

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

Fixes #31