This chapter shows how to integrate with FeaturePeek when using the Travis continuous integration service.
Build pushed pull requests
In your Travis project settings, ensure that your CI triggers when a new pull request is opened.
Example config file
If you already have your config file set up, simply append the FeaturePeek CI command after your build phase.
If you don't have your config file set up yet, take a look at these examples provided by Travis to get started.
/.travis.yml file should look something like this:
Note: The command in the snippet above is just for static builds — if you are building a Docker image, you'll need to pass in more arguments.
Sample code repo
You can search the FeaturePeek org on GitHub to find sample repos of frontends that integrate FeaturePeek with Travis. Be sure to visit the open pull requests to find links to running public FeaturePeek deployments.
Try it out
Try opening a new pull request that contain the changes in this chapter. When your CI finishes successfully, you should see the FeaturePeek bot comment a link on your pull request. If not, consult our Troubleshooting section.