From ef5a537e63d45b0cecbf2c904d12821cd2a1f9e2 Mon Sep 17 00:00:00 2001 From: Mathieu Morainville Date: Thu, 22 Feb 2018 15:30:56 +0100 Subject: [PATCH] fix(ci): change the environment for Cypress --- .circleci/config.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0a4bc9d..d511fc9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,9 @@ jobs: build: docker: # specify the version you desire here - - image: circleci/node:7.10 + - image: cypress/base:6 + environment: + TERM: xterm # Specify service dependencies here if necessary # CircleCI maintains a library of pre-built images @@ -52,8 +54,11 @@ jobs: command: cd ./demo/ && npm run serve background: true + # wait for the webserver to be started in a little hacky way + - run: sleep 5 + # run tests! - - run: cd ./demo/ && npx cypress run + - run: cd ./demo/ && npm run e2e - run: cd ./demo/ && npm run build - run: git status