Skip to content

Commit

Permalink
Update cypress install to live entirely within node_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie committed Jun 4, 2018
1 parent d2928c0 commit 6d6190f
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,17 +58,18 @@ jobs:
- image: circleci/node:carbon
- image: mongo:3.4.4

working_directory: ~/repo
working_directory: /home/circleci/repo

steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- v3-dependencies-{{ checksum "yarn.lock" }}
- run: sudo apt-get install xvfb libgtk2.0-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2
- run: sudo yarn global add bolt
- run: bolt
- run:
name: Bolt - Install packages
command: CYPRESS_CACHE_FOLDER=$CIRCLE_WORKING_DIRECTORY/node_modules/cypress/.cache/ bolt
- run:
name: Starting test project
command: yarn test:server:start
Expand All @@ -79,11 +80,11 @@ jobs:
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
key: v3-dependencies-{{ checksum "yarn.lock" }}

- run:
name: Running E2E tests
command: yarn cypress:run --reporter junit --reporter-options "mochaFile=reports/junit/cypress-results.xml"
command: CYPRESS_CACHE_FOLDER=$CIRCLE_WORKING_DIRECTORY/node_modules/cypress/.cache/ yarn cypress:run --reporter junit --reporter-options "mochaFile=reports/junit/cypress-results.xml"

- store_artifacts:
path: cypress/videos
Expand Down

0 comments on commit 6d6190f

Please sign in to comment.