# cypress-example-docker-codeship **Repository Path**: mirrors_cypress-io/cypress-example-docker-codeship ## Basic Information - **Project Name**: cypress-example-docker-codeship - **Description**: Cypress + Docker + Codeship Pro = ❤️ - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-11-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README > Cypress + Docker + Codeship Pro = ❤️ [ ![Codeship Status for cypress-io/cypress-example-docker-codeship](https://app.codeship.com/projects/c989dc20-2399-0135-8805-66761da64e8c/status?branch=master)](https://app.codeship.com/projects/222054) [![renovate-app badge][renovate-badge]][renovate-app] [renovate-badge]: https://img.shields.io/badge/renovate-app-blue.svg [renovate-app]: https://renovateapp.com/ Running your Cypress E2E tests on [Codeship Pro CI][codeship pro] is very simple. You can either start with a base image [cypress/base](https://hub.docker.com/r/cypress/base/) with all dependencies. 1. Create test image Use [Dockerfile](Dockerfile) to build a test image. If you use `cypress/base` image you would need to install NPM dependencies that includes Cypress. ``` FROM cypress/base:10 WORKDIR /app # Copy our test page and test files COPY index.html ./ COPY cypress.json ./ COPY package.json ./ COPY cypress ./cypress # Install npm dependencies, can also use "npm ci" RUN npm install ``` 2. Define Codeship build step Use [codeship-services.yml](codeship-services.yml) file to build `cypress/cypress-codeship-test` image (from the above Dockerfile). ```yaml cypress-codeship-test: build: image: cypress/cypress_codeship_test dockerfile: Dockerfile ``` 3. Define test steps Use [codeship-steps.yml](codeship-steps.yml) file to use the built image and run one or more E2E tests in parallel or in sequence. ```yaml - name: "Cypress E2E tests" service: cypress-codeship-test command: npm run cy:run ``` The `cy:run` command is an NPM script defined in [package.json](package.json) ```json { "scripts": { "cy:run": "cypress run" } } ``` Now push the changes to the repo, and watch Codeship run ![Codeship run](screenshots/codeship.png) ## Recording The tests are recorded on [Cypress Dashboard](https://dashboard.cypress.io/#/projects/9q15n7/runs). The `CYPRESS_RECORD_KEY` is encrypted following [Codeship Pro documentation](https://documentation.codeship.com/pro/builds-and-configuration/environment-variables/) ## Happy testing If you find problems with Cypress and CI, please - consult the [documentation](https://on.cypress.io) - ask in our [Gitter channel](https://gitter.im/cypress-io/cypress) - find an existing [issue](https://github.com/cypress-io/cypress/issues) or open a new one [codeship pro]: https://codeship.com/features/pro