Try to run cypress tests in chrome

This commit is contained in:
Grzegorz Leoniec 2019-03-12 13:57:29 +01:00
parent 610aa470fb
commit dc8c2e81aa
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377

View File

@ -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