Giter Club home page Giter Club logo

docker-cypress-runner's Introduction

CircleCI

Docker Cypress Runner

A docker image with Cypress installed, ready for your E2E needs. It's based on cypress/browsers:node10.16.0-chrome77-ff71, which includes Chrome 77 and Firefox 71.

See it in Docker hub: https://hub.docker.com/r/trevonerd/cypress

There is a CircleCI hourly build that pulls the latest Cypress, tags it, and pushes it.

How to use

Use directly

docker run -v /my/project:/workdir trevonerd/cypress

Or build your own image:

FROM    trevonerd/cypress:latest
ADD     cypress cypress.json /workdir/

Run your own command:

docker run trevonerd/cypress cypress run --spec ... --reporter ...

Use with a specific Cypress version

You will find Cypress 4.3.0, for example, in trevonerd/cypress:4.3.0

You will also find any new Cypress versions published at most 1 hour after they reach the yarn repos.

Why does this exist

Cypress publishes an image that contains Chrome, but it does not contain the Cypress binary. That causes Cypress to download and unzip every time our CI builds run. That is a lot of downloading and unzipping, with all the time waste and flakiness that comes with it.

This image is currently saving us around 1 minute per build. This number will vary based on the specs of your CI machines.

If you're missing an old Cypress version

I haven't included anything before 2.0.0. Message me or create an issue here and I'll run the script manually with the missing version.

If you find a bug

Oops! PR the fix if you can, or raise an issue otherwise.

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.