Giter Club home page Giter Club logo

Comments (7)

MariadeAnton avatar MariadeAnton commented on May 5, 2024

Hey @plaindocs!
Actually this one refers to http://docs.travis-ci.com/user/gui-and-headless-browsers/#Starting-a-Web-Server

I think user was confused because this part is also needed:

before_script:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - sleep 3 # give xvfb some time to start

to run headless tests without starting a web server after that.

from docs-travis-ci-com.

plaindocs avatar plaindocs commented on May 5, 2024

Yes, I see the problem. Thanks.

from docs-travis-ci-com.

plaindocs avatar plaindocs commented on May 5, 2024

@cotsog @MariadeAnton does either of you have a simple example using Firefox but not using a webserver? I think that might be a good thing to add.

Other feedback welcome.

from docs-travis-ci-com.

MariadeAnton avatar MariadeAnton commented on May 5, 2024

I do not have a simple example using Firefox but not using a webserver. @cotsog, do you?

from docs-travis-ci-com.

ankon avatar ankon commented on May 5, 2024

This PR un-did #311 completely, and it is not clear why one should manually start the server, if xvfb-run works just as well -- and considerably easier, and with less races as per travis-ci/travis-ci#4387)

As this PR is still open, maybe someone involved that can see the original issue could shed a bit of light on what actually was the problem?

FWIW: I'm trying to debug issues where Xvfb reports errors when starting, but would like to avoid to switch from xvfb-run to this magic if possible.

from docs-travis-ci-com.

davehunt avatar davehunt commented on May 5, 2024

Both Chrome and Firefox now natively support headless mode. See #1538 for the documentation of Firefox, and there's already documentation for Chrome.

from docs-travis-ci-com.

MariadeAnton avatar MariadeAnton commented on May 5, 2024

Thanks so much for the help, @davehunt! We're all set now with Firefox too 😊

For xvfb - there's a PR and review on the works at #1206 - @ankon, please feel free to take a look 👀 there and let us know what you think!

from docs-travis-ci-com.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.