Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix integration tests on CircleCI #115

Merged
merged 1 commit into from
Jun 4, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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