Skip to content

Commit

Permalink
provide revision info to sentry. #214
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Mar 10, 2019
1 parent afdb69c commit 3aa367f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ after_success:
rm dockerize-linux-amd64-v0.6.0.tar.gz;
export GIT_SHA=$(git rev-parse --short HEAD);
export GIT_TAG=$(git describe --tags $(git rev-list --tags --max-count=1));
export VERSION=$(sentry-cli releases propose-version);
sentry-cli releases new -p lupo $VERSION
sentry-cli releases set-commits --auto $VERSION

git clone "https://${TRAVIS_SECURE_TOKEN}@github.com/datacite/mastino.git";
./dockerize -template vendor/docker/_lupo.auto.tfvars.tmpl:mastino/stage/services/client-api/_lupo.auto.tfvars;

Expand Down
1 change: 1 addition & 0 deletions config/initializers/_version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module Lupo
class Application
VERSION = "2.3.39"
REVISION = `git rev-parse HEAD`
end
end
1 change: 1 addition & 0 deletions config/initializers/sentry.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Raven.configure do |config|
config.dsn = ENV["SENTRY_DSN"]
config.release = Lupo::Application::REVISION
config.sanitize_fields = Rails.application.config.filter_parameters.map(&:to_s)
end

0 comments on commit 3aa367f

Please sign in to comment.