forked from cypress-io/cypress-test-tiny
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
43 lines (36 loc) · 1.18 KB
/
circle.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
# Check https://circleci.com/docs/2.0/ for more details
# for config.yml syntax see https://circleci.com/docs/2.0/configuration-reference/
version: 2
jobs:
test:
docker:
# find Docker image at https://github.com/cypress-io/cypress-docker-images
- image: cypress/base:10
working_directory: ~/repo
steps:
- checkout
# Download and cache dependencies for the app and for tests
- restore_cache:
keys:
- dependencies-{{ checksum "package.json" }}
# fallback to using the latest cache if no exact match is found
- dependencies-
- run: npm install
- save_cache:
paths:
# local NPM modules
- node_modules
# all NPM modules
- ~/.npm
# Cypress binary (or yarn dependencies)
- ~/.cache
key: dependencies-{{ checksum "package.json" }}
- run: $(npm bin)/commit-message-install --else "npm install cypress"
- run: $(npm bin)/run-if npm run cypress:version
- run: $(npm bin)/run-if npm run cypress:run
- run: $(npm bin)/run-if npm run check-videos
workflows:
version: 2
tests:
jobs:
- test