From 81cf313613b86d6464fcf16341884c5025143b50 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Tue, 12 Mar 2019 11:13:19 +0100 Subject: [PATCH] run sentry-cli in git repo --- .travis.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index d2054b401..e1197a27b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -79,7 +79,13 @@ after_success: if [ "${TRAVIS_TAG?}" ]; then ./dockerize -template vendor/docker/_lupo.auto.tfvars.tmpl:mastino/prod-eu-west/services/client-api/_lupo.auto.tfvars; + sentry-cli releases new lupo:${GIT_TAG} --finalize --project lupo; + sentry-cli releases deploys lupo:${GIT_TAG} new -e production; + else + sentry-cli releases deploys lupo:${GIT_TAG} new -e stage; fi + + sentry-cli releases set-commits --auto lupo:${GIT_TAG}; cd mastino; git remote; @@ -95,15 +101,6 @@ after_success: git commit -m "Adding lupo git variables for latest commit"; git push "https://${TRAVIS_SECURE_TOKEN}@github.com/datacite/mastino.git" master; fi - - if [ "${TRAVIS_TAG?}" ]; then - sentry-cli releases new lupo:${GIT_TAG} --finalize --project lupo; - sentry-cli releases deploys lupo:${GIT_TAG} new -e production; - else - sentry-cli releases deploys lupo:${GIT_TAG} new -e stage; - fi - - sentry-cli releases set-commits --auto lupo:${GIT_TAG}; fi notifications: