PhantomCSS: resemblejs not found for pipelines build

I have a project I´m trying to use PhantomCSS for Visual Regression Testing (fancy buzzword for diffs on png)

https://github.com/Huddle/PhantomCSS

I was able to get this up and running on codeship in about 10 minutes flat but for some reason can´t get it to work on Pipelines after +2 hours. I´d rather stick to the Atlassian stack if possible.

I imported the official PhantomCSS github repo into Bitbucket and setup the following .yml

image: node:5.11.0

pipelines:
  default:
    - step:
        script: # Modify the commands below to build your repository.
          - npm --version
          - npm install -g casperjs phantomjs-prebuilt resemblejs
          - casperjs test demo/testsuite.js --verbose --log-level=debug

Here are the errors:

Stectech___PhantomCSS___Add-on___Pipelines_—_Bitbucket_🔊.png

 

Here I created a custom bitbucket-pipelines.yml file just to see if it could find resemblejs:

 

Stectech___PhantomCSS___Add-on___Pipelines_—_Bitbucket.png

 

The frustrating this is I followed the instructions here: https://answers.atlassian.com/questions/39230190 and it worked perfectly first time (!!)

 

Here´s the proof from our production project running these commands inside the docker container:

2_____kalabox_apps_bigpandaio_code__docker_.png

1 answer

Hi Rodney,

Could you try the following YML and see how it goes?

image: node:5.11.0
 
pipelines:
  default:
    - step:
        script: # Modify the commands below to build your repository.
          - npm --version
          - npm install -g casperjs phantomjs
          - npm install
          - casperjs test demo/testsuite.js --verbose --log-level=debug

I've run some tests and I get the following results

image2016-10-6 12:34:20.png

Edit:

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

28,455 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you