From dc8c2e81aaafcccdb44bda0ec6aef6a65ae652fd Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Tue, 12 Mar 2019 13:57:29 +0100 Subject: [PATCH] Try to run cypress tests in chrome --- .travis.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 2b1608b01..2d78af0e8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,14 @@ cache: - node_modules services: - docker +addons: + chrome: stable + apt: + sources: + - google-chrome + packages: + - google-chrome-stable + env: - DOCKER_COMPOSE_VERSION=1.23.2 BACKEND_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH:-master}} @@ -34,7 +42,7 @@ script: - docker-compose exec -e NODE_ENV=test webapp yarn run lint - docker-compose exec -e NODE_ENV=test webapp yarn run test - wait-on http://localhost:7474 && docker-compose -f ../Nitro-Backend/docker-compose.yml exec neo4j migrate - - wait-on http://localhost:3000 && cypress run --record --key $CYPRESS_TOKEN + - wait-on http://localhost:3000 && cypress run --parallel --browser chrome --record --key $CYPRESS_TOKEN after_success: - wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh