mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
Only install and use sentry-cli on travis; sentry-cli doesn't work on BSD. See #2307
This commit is contained in:
5
Makefile
5
Makefile
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user