-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install PhantomJS 2.0.0 in /usr/local/phantomjs-2.0.0/bin/phantomjs
- Loading branch information
Showing
3 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Install PhantomJS 2.0.0 from custom-built archive | ||
|
||
package 'libjpeg-dev' | ||
package 'libicu48' | ||
|
||
archive_path = File.join(Chef::Config[:file_cache_path], 'phantomjs.tar.bz2') | ||
version = '2.0.0' | ||
local_dir = "/usr/local/phantomjs-#{version}/bin" | ||
|
||
remote_file archive_path do | ||
source "https://s3.amazonaws.com/travis-phantomjs/phantomjs-#{version}-#{node.platform}-#{node.platform_version}.tar.bz2" | ||
end | ||
|
||
directory local_dir do | ||
user 'root' | ||
group 'root' | ||
recursive true | ||
end | ||
|
||
bash "expand phantomjs archive" do | ||
user 'root' | ||
group 'root' | ||
code "tar xjf #{archive_path} -C #{local_dir}" | ||
creates File.join(local_dir, 'phantomjs') | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e38732d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BanzaiMan are there instructions somewhere describing how to use phantomjs 2.0 for testing?
e38732d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@truenorth It is in
/usr/local/phantomjs-2.0/bin/phantomjs
. This is not on$PATH
.http://docs.travis-ci.com/user/build-environment-updates/2015-04-09/