strider icon indicating copy to clipboard operation
strider copied to clipboard

new plugin: strider-phantomjs

Open jaredly opened this issue 13 years ago • 6 comments

Should check for phantomjs and install it if it's not present.

Should run during the "prepare" phase

jaredly avatar Jul 17 '13 16:07 jaredly

@jaredly is this still desired?

knownasilya avatar Aug 12 '14 02:08 knownasilya

I don't have a project atm for which it's critical, but it would be nice to have.

jaredly avatar Aug 12 '14 02:08 jaredly

I have a question, I have phantomJS installed in the system in a production Strider Server and when I try access via ssh and run the command: phantomjs, in the terminal can execute the command, but when i put the command in the custom plugin not works, show sh permission denied. How I can use the phamthonJS command for run a cucumber tests?

gartox avatar Dec 09 '14 08:12 gartox

Run it with sudo, or fix your permissions for global installs. On Dec 9, 2014 3:52 AM, "Jesus Manuel Garcia Torres" < [email protected]> wrote:

I have a question, I have phantomJS installed in the system in a production Strider Server and when I try access via ssh and run the command: phantomjs, in the terminal can execute the command, but when i put the command in the custom plugin not works, show sh permission denied. How I can use the phamthonJS command for run a cucumber tests?

— Reply to this email directly or view it on GitHub https://github.com/Strider-CD/strider/issues/111#issuecomment-66251283.

knownasilya avatar Dec 09 '14 11:12 knownasilya

@gartox: so phantomjs is installed on the same machine where strider is installed, but putting phantomjs etc in a custom script throws an error? Could you paste the error here?

jaredly avatar Dec 09 '14 17:12 jaredly

  • /home/ec2-user/phantomjs/bin/phantomjs --help sh: line 9: /home/ec2-user/phantomjs/bin/phantomjs: Permission denied

I put in the test phase in the Custom plugin the command: /home/ec2-user/phantomjs/bin/phantomjs --help

Because I can't use directly just: $ phantomjs --help

I had the same problem when I was trying run the command:

$ bundle install

I have to use the full path for can run: bundle install.

Now I can run the cucumber specs with sauce labs, but without strider-sauce plugin, I had to change my env.rb for integrate saucelabs. But never can use phantomJs.

gartox avatar Dec 09 '14 17:12 gartox