Skip to content

Commit

Permalink
Install PhantomJS 2.0.0 in /usr/local/phantomjs-2.0.0/bin/phantomjs
Browse files Browse the repository at this point in the history
  • Loading branch information
BanzaiMan committed Apr 6, 2015
1 parent 792db17 commit e38732d
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

- Update maven 3.2.5 to 3.3.1 (Hiro Asari)

- Install PhantomJS 2.0.0 from custom-built archive in /usr/local/phantomjs-2.0.0/bin/phantomjs (Hiro Asari)

### Production on 2015-02-03:

- Update sbt-extras script to fix travis-ci/travis-ci#3140 (Gilles Cornu)
Expand Down
25 changes: 25 additions & 0 deletions ci_environment/phantomjs/recipes/2.0.rb
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
1 change: 1 addition & 0 deletions vm_templates/common/standard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ recipes:
- firefox::tarball
- chromium
- phantomjs::tarball
- phantomjs::2.0
#
# Debugging & support
#
Expand Down

2 comments on commit e38732d

@mike-north
Copy link

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?

@BanzaiMan
Copy link
Contributor Author

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/

Please sign in to comment.