Skip to main content
Example config for running Momentic on Travis CI. More reference configs live in momentic-ai/examples. For a given root package.json:
package.json
Create a file called .travis.yml in your repository with the following contents:
.travis.yml

Authentication

To run any commands, you must authenticate with Momentic. Set the MOMENTIC_API_KEY environment variable in your Travis repository settings.
  1. Create an API key in the Momentic dashboard.
Copy the value. You add it as a CI secret in the next step.
  1. Go to your Travis repository settings and scroll down to the Environment Variables section. Create a new variable called MOMENTIC_API_KEY and enter the value of your API key.
  1. Travis CI automatically loads environment variables stored in project settings into the CI environment. The CI file needs no changes.