-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Enhancement] PhantomJS 2.0 running on travis-ci #3895
Conversation
We should not need to install it, Travis is installing both phantom 1.9 and 2.0 on their VM's (I'll try to find the issue with details). |
See travis-ci/travis-cookbooks@e38732d (which I see you commented on actually!?!?), and documented in http://docs.travis-ci.com/user/build-environment-updates/2015-04-09/. I believe that we just need to add the directory to |
Thanks @rwjblue. Not sure how I commented on that and missed it lol! |
awesome! |
[Enhancement] PhantomJS 2.0 running on travis-ci
@stefanpenner - We need to make sure to call this out explicitly in the release notes (both in the detailed list section and the "these changes are required for this version" section. Folks should be ready to update their local environments to use the same version of phantom (it would suck to use 1.9.8 locally but test in Travis against 2.0). |
HUGE 👍 to this though. |
👍 |
Sadly it looks like Travis rolled back the update that provided Phantom 2. So for now this PATH update doesn't do anything. When they finally release it again, people will suddenly get the new version. |
@ef4 Yep they keep rolling back their updates. The workaround for now is to download and install a phantomjs 2.0 binary before_install:
- mkdir travis-phantomjs
- wget https://s3.amazonaws.com/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.0.0-ubuntu-12.04.tar.bz2 -C $PWD/travis-phantomjs
- export PATH=$PWD/travis-phantomjs:$PATH
- "npm config set spin false"
- "npm install -g npm@^2"
|
Seeing no action from Travis on this. Perhaps it's time to bless the workaround and remove the useless |
cc @drogus |
Travis does seem to be actively encouraging manual installation at the moment. |
Sorry for the problems with rolled back updates. I'll check what's the status of the image with phantomjs 2.0 and let you know. |
It seems that the recipe for 2.0 is on master in cookbooks, but it's not executed. I'm not familiar with our current cookbooks system, so I'll clarify with someone who does when they get up. |
I have an update regarding the situation. Cookbooks that are used for ubuntu precise builds are on A workaround would be to use ubuntu trusty or use a manual installation method mentioned above. The downside of using trusty is that it has longer startup time than precise (which uses docker). There could be also a nicer way of abstracting the setup, ie. I think we could add a simple addon, which would allow you to choose phantomjs version just like so:
A nice thing about the addon is that we could make it work regardless of the changes on VMs and it could be deployed rather soon. Let me know what do you think about something like that. |
Can you link docs on how we can create such an add on |
@stefanpenner it needs to be created in https://github.com/travis-ci/travis-build, unfortunately we don't allow any third party addons at the moment. What I meant by that is that I could create such an addon for you later this week. That said, if anyone wants to give it a shot, you can take a look at firefox addon, I believe that phantomjs addon would be similar (with an exception of checking if a given version is already there, for example there's no need to install 2.0 on trusty): https://github.com/travis-ci/travis-build/blob/master/lib/travis/build/addons/firefox.rb |
I use Travis with phantom 2 with this
|
No description provided.