forked from cypress-io/cypress-example-kitchensink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
shippable.yml
53 lines (48 loc) · 2.21 KB
/
shippable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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'