Couldn't get heroku CI working
See original GitHub issueOverview: I’ve created a very simple test spec that I wanted to get running in a CI-enabled Heroku pipeline. However, it seems to fail due to some xvfb configuration issues.
I tried different flavors of buildpacks and chrome and electron both.
When missing a dependency I would get an error message on the heroku dyno about the missing dependency (e.g. xvfb, etc). However, once all the dependencies were installed, I then got this message;
~ $ ./node_modules/.bin/cypress run
It looks like this is your first time using Cypress: 1.1.0
[04:28:22] Verifying Cypress can run /app/node_modules/cypress/dist/Cypress [started]
[04:28:22] Verifying Cypress can run /app/node_modules/cypress/dist/Cypress [failed]
Cypress failed to start.
This is usually caused by a missing library or dependency.
The error below should indicate which dependency is missing.
https://on.cypress.io/required-dependencies
If you using Docker, we provide containers with all required dependencies installed.
----------
----------
Platform: linux (Ubuntu Linux - 14.04)
Cypress Version: 1.1.0
on the advice of @brian-mann via your Gitter chat, I tried this command:
./node_modules/cypress/dist/Cypress/Cypress
However that produced no console output whatsoever.
Here’s the heroku configuration I wound up with (after trying various buildpacks):
stack: cedar-14 (per heroku xvfb doesn’t work with the new stack) buildpack: https://github.com/heroku/heroku-buildpack-apt Then I configured the Aptfile with these dependencies
xvfb
libgtk2.0-0
libnotify-dev
libgconf-2-4
libnss3
libxss1
libasound2
(copied out of your instructions).
I’m giving up on getting this running on heroku, but if you’re having trouble recreating the situation, I could probably get something set up for you pretty quickly (the code part is trivial-- basically a hello world test.)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:7
- Comments:10 (5 by maintainers)
We are extensively using Circle, cannot recommend it high enough.
Sent from my iPhone
@arshdeeptinna I have looked around in https://github.com/cypress-io/cypress-example-kitchensink/issues/213 and could not find any modern Heroku buildpack with
heroku-18
XVFB install. I don’t want to write one, and suggest using “real” CI instead - something that can use ourcypress-docker-images
Docker image to have all OS dependencies.