Only install and use sentry-cli on travis; sentry-cli doesn't work on BSD. See #2307

This commit is contained in:
Matt Godbolt
2020-11-03 08:08:37 -06:00
parent 63971bffc6
commit 43343cdd56
3 changed files with 4 additions and 51 deletions

View File

@@ -87,7 +87,6 @@ dist: export WEBPACK_ARGS=-p
dist: prereqs webpack ## Creates a distribution
echo $(HASH) > out/dist/git_hash
SENTRY := ./node_modules/.bin/sentry-cli
travis-dist: dist ## Creates a distribution as if we were running on travis
echo $(TRAVIS_BUILD_NUMBER) > out/dist/travis_build
rm -rf out/dist-bin
@@ -98,8 +97,8 @@ travis-dist: dist ## Creates a distribution as if we were running on travis
du -ch out/**/*
# Create and set commits for a sentry release if and only if we have the secure token set
# External GitHub PRs etc won't have the variable set.
@[ -z "$(SENTRY_AUTH_TOKEN)" ] || $(SENTRY) releases new -p compiler-explorer $(TRAVIS_BUILD_NUMBER)
@[ -z "$(SENTRY_AUTH_TOKEN)" ] || $(SENTRY) releases set-commits --auto $(TRAVIS_BUILD_NUMBER)
@[ -z "$(SENTRY_AUTH_TOKEN)" ] || $(NPM) run sentry releases new -p compiler-explorer $(TRAVIS_BUILD_NUMBER)
@[ -z "$(SENTRY_AUTH_TOKEN)" ] || $(NPM) run sentry releases set-commits --auto $(TRAVIS_BUILD_NUMBER)
install-git-hooks: ## Install git hooks that will ensure code is linted and tests are run before allowing a check in
mkdir -p "$(shell git rev-parse --git-dir)/hooks"