This chapter shows how to integrate with FeaturePeek when using the AWS CodeBuild 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 the Build Specification Reference for CodeBuild to get started.
/buildspec.yml file should look something like this:
# /buildspec.yml version: 0.2 env: git-credential-helper: yes phases: install: runtime-versions: nodejs: 10 pre_build: commands: - yarn build: commands: - yarn build post_build: commands: - curl -s https://peek.run/ci | bash -s
Note: The command in the snippet above is just for Docker builds — if you are building a Docker image, you'll need to pass in more arguments. Be sure to include the flags after
bash -s -- -i <image> -r <registry> -t <tag>.
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.