Skip to content

Use PhantomJS 2.1.1 on Travis#6051

Merged
ErisDS merged 1 commit intoTryGhost:masterfrom
kevinansfield:phantomjs2
Feb 3, 2016
Merged

Use PhantomJS 2.1.1 on Travis#6051
ErisDS merged 1 commit intoTryGhost:masterfrom
kevinansfield:phantomjs2

Conversation

@kevinansfield
Copy link
Copy Markdown
Member

no issue

  • download phantomjs 2.1.1 in Travis' before_install step and update the PATH export to so the downloaded version is used
  • remove the now no-longer needed ember-cli-es5-shim dependency
  • update documentation references to match new phantomjs version

Seeing as we've now dropped the Casper.js suite I figured we should try upgrading to phantomjs 2.0 as it's recommended by Ember, uses a much newer version of webkit and is supposedly faster.

I don't think it's quite ready for general use yet as I ran into a couple of issues when trying this out:

@ErisDS
Copy link
Copy Markdown
Member

ErisDS commented Nov 17, 2015

This is cool, I look forward to it being available. I'd imagine it would be way more reliable using 2.0 for our tests seeing as our layout relies on flexbox so heavily.

@kevinansfield
Copy link
Copy Markdown
Member Author

Looks like there's movement on the 2.0.1/2.1 release so hopefully shouldn't be too long now https://groups.google.com/forum/#!topic/phantomjs-dev/vkdGvFpULNo

@acburdine
Copy link
Copy Markdown
Member

Hey so phantomjs 2.1 (and 2.1.1) was released yesterday. It also looks like all the compiled binary issues have been fixed as well 😄

@kevinansfield
Copy link
Copy Markdown
Member Author

@acburdine Awesome, I think before we rush this in it would be good to run 2.1 locally for a while so that we can catch any differences or issues. I'll be installing 2.1 later, would you mind doing that too?

I think medium-term it would be better to switch Travis to testing with Chrome (and other browsers) as that will always be much closer to real-life than phantomjs.

@acburdine
Copy link
Copy Markdown
Member

Yeah I can do that. I'm not sure how to test with Chrome in Travis, but sounds like a good plan 👍

Also (this is just me thinking out loud), what about using Saucelabs testing?

@kevinansfield
Copy link
Copy Markdown
Member Author

Yep, saucelabs is definitely on the cards too. We may need to look into splitting the repositories as the client testing gets more involved because Travis' matrix really doesn't cover the multi-project same-repo use case well.

@kevinansfield kevinansfield changed the title SPIKE: Phantomjs 2.0 Use PhantomJS 2.1.1 on Travis Feb 3, 2016
@kevinansfield
Copy link
Copy Markdown
Member Author

PhantomJS 2.1.x was recently released which resolves the OS X compilation issues. We've also started to run into phantomjs 1.9.x issues with our tests so I think the time is right to look at this again (TBH I'm surprised they are working at all with our heavy use of flexbox!).

I've updated the PR to use the new version, tests seem to be running fine on Travis.

no issue
- download phantomjs 2.1.1 in Travis' `before_install` step and update the `PATH` export to so the downloaded version is used
- remove the now no-longer needed `ember-cli-es5-shim` dependency
- update documentation references to match new phantomjs version
@acburdine
Copy link
Copy Markdown
Member

LGTM 👍

And based on the testing I've done locally with phantomjs, it does seem a decent amount faster.

ErisDS added a commit that referenced this pull request Feb 3, 2016
@ErisDS ErisDS merged commit 873c278 into TryGhost:master Feb 3, 2016
@ErisDS ErisDS deleted the phantomjs2 branch February 3, 2016 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants