Skip to content

Commit cf2bc7e

Browse files
authored
ci: Run browserstack tests only if key is present (getsentry#2576)
For PRs from external contributors, browserstack tests can never succeed because they depend on secret env var keys that Travis do not provide to untrusted builds. This change disables running the tests altogether when the keys are not available. The browserstack tests are run anyway in master and release branches, no changes.
1 parent 0397e5a commit cf2bc7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
- name: '@sentry/browser - browserstack integration tests'
4545
node_js: '12'
4646
script: scripts/browser-integration.sh
47+
if: env(TRAVIS_SECURE_ENV_VARS) = true
4748
- stage: Deploy
4849
name: '@sentry/packages - pack and zeus upload'
4950
node_js: '12'

0 commit comments

Comments
 (0)