Generate samples before build
Merge pull request #1533 from github/travis-samples

Generate samples before build