Skip to content

🏗🐛 Don't call travisBuildNumber() in the global scope#24021

Merged
rsimha merged 1 commit intoampproject:masterfrom
rsimha:2019-08-16-TravisGlobal
Aug 16, 2019
Merged

🏗🐛 Don't call travisBuildNumber() in the global scope#24021
rsimha merged 1 commit intoampproject:masterfrom
rsimha:2019-08-16-TravisGlobal

Conversation

@rsimha
Copy link
Copy Markdown
Contributor

@rsimha rsimha commented Aug 16, 2019

Calling travisBuildNumber() in the global scope results in an error while running any gulp task locally.

ERROR: This is not a Travis build. Cannot get process.env.TRAVIS_BUILD_NUMBER.

This PR moves the call to local scope.

Addresses https://github.com/ampproject/amphtml/pull/23976/files#r314841349

@rsimha rsimha merged commit c8e1236 into ampproject:master Aug 16, 2019
@rsimha rsimha deleted the 2019-08-16-TravisGlobal branch August 16, 2019 19:04
westonruter added a commit to westonruter/amphtml that referenced this pull request Aug 17, 2019
…cript-img-with-http-protocol

* 'master' of github.com:ampproject/amphtml: (1326 commits)
  Fix and enable e2e tests for AMPHTML ads FIE rendering mode (ampproject#23995)
  🏗 Update WorkerDOM to 0.17.0 (ampproject#24024)
  Make DocInfo.pageViewId64 async (ampproject#23998)
  🐛 Updates amp-sidebar in amp-story  (ampproject#23956)
  Revert "Revert "📖Update documentation for carousel 0.2 (ampproject#23840)" (ampproject#23967)" (ampproject#24016)
  🔥 Revert "📈 Initial StorySpec Implementation (ampproject#23030)" (ampproject#24013)
  Extension skeleton code for payment widgets (ampproject#23045)
  🏗🐛 Don't call `travisBuildNumber()` in the global scope (ampproject#24021)
  Remove suppressTypes from amp-mustache. (ampproject#23993)
  🐛 Move `terser` from `dependencies` to `devDependencies` (ampproject#24018)
  Revert "Revert "Set the new loaders experiment to 1% of traffic. (ampproject#23780)" (ampproject#23963)" (ampproject#24014)
  SwG release 0.1.22.63 (ampproject#23997)
  Resolve navTiming variable earlier if possible (ampproject#23580)
  🏗 Don't run all the runtime tests for validator-only changes (ampproject#24010)
  Collect document ready signal (ampproject#23981)
  Validator rollup (ampproject#24000)
  Remove flaky story branching test. (ampproject#23994)
  Include amp-base-carousel in amp-carousel's build. (ampproject#23984)
  Partial validator rollup (ampproject#23996)
  amp-bind: Rate-limit history operations (ampproject#23938)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants