Skip to content

Instantly share code, notes, and snippets.

@teebu
Created November 17, 2017 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teebu/4730a3faacbeac3235e2a5f76274d763 to your computer and use it in GitHub Desktop.
Save teebu/4730a3faacbeac3235e2a5f76274d763 to your computer and use it in GitHub Desktop.
Setting up Sentry in travis.yml
Set env variables in travis.yml:
```
export SENTRY_AUTH_TOKEN=...
export SENTRY_ORG=organization-slug
```
update_sentry.sh:
```
#!/bin/sh
VERSION=$(sentry-cli releases propose-version)
sentry-cli releases new -p my-project -p my-other-project $VERSION
sentry-cli releases set-commits --auto $VERSION
# once you are done, finalize
sentry-cli releases finalize $VERSION
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment