Speed up PR's.

No need to run production build for non-prod tests.
Merge pull request #9972 from rwjblue/speed-up-prs

Speed up PR's.