Report deploys to Atatus from Travis CI
Use after_success
functionality. Also, add the following contents in .travis.yml
copy
env:
global:
- ATATUS_API_KEY=place_your_api_here
after_success:
- .travis/atatus_deployment.sh
atatus_deployment.sh
copy
#!/bin/sh
curl https://api.atatus.com/v2/projects/:projectId/deployments \
-F api_key="$ATATUS_API_KEY" \
-F revision="$TRAVIS_COMMIT" \
-F release_stage="production" \
-F user="$USER" \
-F changes="$TRAVIS_COMMIT_MESSAGE"
Important:
To record deployments, you need to have an API key with the Write permission. You can create your API key from your account settings.