• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

optimizely / javascript-sdk / 307
78%

Build:
DEFAULT BRANCH: master
Ran 29 Jun 2018 06:16PM UTC
Jobs 5
Files 44
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
307

push

travis-ci

web-flow
refactor(ci): Bypass Lerna and repurpose the 'test-travis' run-script (#129)

## Summary

- Bypass Lerna things in CI
- Don't install `grunt`. I presume it was installed because `test-travis` refers to it, but locally-installed executable modules are on the $PATH in run-scripts so global installation is unnecessary.
- Rename `test-travis` to `test-xbrowser` and modify it such that it only runs cross-browser tests in BrowserStack (via `grunt`), rather than re-running unit tests headlessly+locally _again_ with `npm test` (which is done as part of the `prepare` lifecycle hook that's invoked during `npm install`). The rename makes it clearer that the run-script could plausibly, usefully be run locally as well (say, if one was debugging a consistent failure in some browser).

Lerna seems to be correlated with some recent sporadic timeout failures:
- https://travis-ci.org/optimizely/javascript-sdk/jobs/397898591
- https://travis-ci.org/optimizely/javascript-sdk/jobs/397898592
- https://travis-ci.org/optimizely/javascript-sdk/jobs/397568472
- https://travis-ci.org/optimizely/javascript-sdk/jobs/397568474
- https://travis-ci.org/optimizely/javascript-sdk/jobs/396745267

This PR `cd`'s the Travis CI pipeline directly into the optimizely-sdk package's dir, and does things there. Doing so seems to reduce the mean CI time (compute time on Travis machines, not wall-clock time) from about 21 mins to 15 mins.

## Test plan
This PR's CI run: [#288](https://travis-ci.org/optimizely/javascript-sdk/builds/397977186).

408 of 448 branches covered (91.07%)

Branch coverage included in aggregate %.

3961 of 4051 relevant lines covered (97.78%)

73.28 hits per line

Jobs
ID Job ID Ran Files Coverage
1 307.1 29 Jun 2018 06:17PM UTC 0
97.11
Travis Job 307.1
2 307.2 29 Jun 2018 06:17PM UTC 0
97.11
Travis Job 307.2
3 307.3 29 Jun 2018 06:16PM UTC 0
97.11
Travis Job 307.3
4 307.4 29 Jun 2018 06:16PM UTC 0
97.11
Travis Job 307.4
5 307.5 29 Jun 2018 06:16PM UTC 0
97.11
Travis Job 307.5
Source Files on build 307
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #307
  • 9d5d8ef5 on github
  • Prev Build on master (#150)
  • Next Build on master (#309)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc