Travis CI
This guide shows how to start and use LocalStack in your Travis CI jobs.
- Install the LocalStack CLI (and maybe also ).
- Use the LocalStack CLI to start LocalStack. Make sure to use the
-d
flag to start the LocalStack docker container in detached mode.
The following example Travis CI job config () executes these steps, creates a new S3 bucket, and prints a nice message in the end:
Activate LocalStack Pro
Just go to the project settings in Travis CI (More options
→ ), scroll down to the Environment Variables
section, and add your API key: