This chapter shows how to integrate with FeaturePeek when using the Semaphore continuous integration service.
Example CI config
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 Semaphore to get started.
.semaphore/semaphore.yml file should look something like this:
version: v1.0 name: Hello Semaphore agent: machine: type: e1-standard-2 os_image: ubuntu1804 blocks: - name: Simple example task: env_vars: - name: APP_ENV value: prod jobs: - name: Building & Calling FeaturePeek commands: - checkout - yarn build - bash <(curl -s https://peek.run/ci)
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.
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.