Skip to content

Commit 49f29e1

Browse files
authored
misc: Fix Travis conditional build (getsentry#2583)
Not all environment variables that Travis set in build time are available to conditional build evaluation. Instead of using environment variables, we can condition on the fork attribute, which is false for branches in the main repo, and true for PRs sent from forks. Reference: https://docs.travis-ci.com/user/conditions-v1#integration
1 parent 4edd1a1 commit 49f29e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +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
47+
if: fork = false
4848
- stage: Deploy
4949
name: '@sentry/packages - pack and zeus upload'
5050
node_js: '12'

0 commit comments

Comments
 (0)