Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Issue with running rails 5(with webpack) selenium in bitbucket pipelines

Hello, having issue with running headless chrome selenium. Locally everything works.

Basically this step of integration tests I want to run:

- step:
name: Integration tests
image: ruby:2.5.1
- bundler
- node
- export DATABASE_URL=postgresql://test_user:test_user_password@localhost/pipelines
- bundle install --path vendor/bundle
- mv config/deploy/ config/database.yml

# Install dependencies that chrome and chromedriver will need
- apt-get update && apt-get install -yq libnss3 unzip openjdk-8-jre-headless xvfb libxi6 libgconf-2-4

# Install chrome browser and chromedriver
- curl -sS -o - | apt-key add
- echo "deb stable main" >> /etc/apt/sources.list.d/google-chrome.list
- apt-get -y update
- apt-get -y install google-chrome-stable
- wget
- unzip
- mv chromedriver /usr/bin/chromedriver
- chown root:root /usr/bin/chromedriver
- chmod +x /usr/bin/chromedriver

# Install node
- apt-get -qq install gnupg
- curl -sL | bash -
- apt-get install -y build-essential
- apt-get install -y nodejs
- apt-get update

- npm install

- RAILS_ENV=test bundle exec rspec spec/features/tests
- postgres
- redis

 This gives me error: 

Webpacker can't find platform in /opt/atlassian/pipelines/agent/build/public/packs-test/manifest.json 

Found that I possibly need to add a command before:

NODE_ENV=test bundle exec rails webpacker:compile

But after that another error rises:

TypeError: no implicit conversion of nil into String/opt/atlassian/pipelines/agent/build/config/application.rb:26:in `<class:Application>'

This looks like an error in app itself, but again running webpack compile locally works fine, so it doesn't look like problem with app code.

Anything I'm missing? 

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence Cloud

🎨 Add some visual life to your templates

Hi Atlassian Community, My name is Avni Barman, and I am a Product Manager on the Confluence Cloud team. Based on feedback from you, we are giving admins more power to create templates that a...

105 views 1 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you