Skip to content
Permalink
master
Go to file
 
 
Cannot retrieve contributors at this time
53 lines (48 sloc) 2.21 KB
# Example running Cypress.io tests on Shippable CI
# Official Cypress CI documentation at
# https://on.cypress.io/continuous-integration
# see Shippable documentation at
# http://docs.shippable.com/ci/tutorials/
# http://docs.shippable.com/platform/workflow/config/
# set environment variable CYPRESS_RECORD_KEY to allow recording test artifacts
# on Cypress dashboard https://on.cypress.io/dashboard-service
env:
# the record key should be secret, thus it is encrypted
# http://docs.shippable.com/ci/env-vars/
- secure: BVEpGDVa62Pc2fJzblIbkUifF207qfQMMial+KYkp0KlcVtF/WT12jFQ6N6fNGQSZc8op2E+K/OnTFI3Lo6NueD85wHy6PZiHTgrAzFjCZpMksyY7Pu/n7SKQk1yVS9rTNqtdTdRoXGTDX3DgVErBYeTYv7/uyH5sL4/HiS7Y2iuEkXV30X6K6Qx/D3zH/EXZARwJoIk88xliJW9hkqP1UKAeOS4tuBY/ADQ0gxi8bi4Io1N+rQ+QZRHm8Buur5PnVLIQhwL7nS7mLUJvXTZOThqYLJ4P/9E6CBX1gviwQLo4KvyExv9zc18gyX5pJ/16fl94dKIJ6518EKPY6xRFQ==
build:
# note: you can use custom Docker image with Shippable, see
# http://docs.shippable.com/ci/custom-docker-image/
pre_ci_boot:
# https://github.com/cypress-io/cypress-docker-images
image_name: cypress/base
# use specific tag to avoid surprises
image_tag: 12.16.1
pull: true
# Caching configuration to avoid reinstalling node modules and Cypress binary again and again
# http://docs.shippable.com/ci/caching/
cache: true
cache_dir_list:
- /root/.npm
- /root/.cache
ci:
- node --version
- npm --version
- npm ci
# let's see where Cypress binary is stored and its version
- npx cypress cache path
- npx cypress cache list
- npx cypress info
# prints all environment variables that start with SHIPPABLE
# useful to configure parallel builds for example
# which is a paid feature on Shippable and on Cypress Dashboard
# http://docs.shippable.com/ci/parallelize-tests/
# https://on.cypress.io/parallelization
- npm run print-env -- SHIPPABLE
- npm run print-env -- IS
- npm run print-env -- REPO
- npm run print-env -- COMMIT
- npm run print-env -- BUILD
# starts test server, runs Cypress tests, closes server after they complete
# https://github.com/bahmutov/start-server-and-test
- npx start-test start:ci 8080 'cypress run --record --env shippable=true'
You can’t perform that action at this time.