mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2026-01-20 20:01:25 +00:00
Run cypress on Travis CI
This commit is contained in:
parent
437337b7aa
commit
7d5c7f421a
@ -23,9 +23,13 @@ install:
|
||||
- git clone --depth=50 https://github.com/Human-Connection/Nitro-Backend.git ../Nitro-Backend
|
||||
- git --work-tree=../Nitro-Backend checkout $TRAVIS_BRANCH || echo "Branch \`$TRAVIS_BRANCH\` does not exist, falling back to \`master\`"
|
||||
- docker-compose -f ../Nitro-Backend/docker-compose.yml up -d
|
||||
- yarn global add cypress wait-on
|
||||
|
||||
script:
|
||||
- docker-compose exec webapp yarn run lint
|
||||
- docker-compose -f ../Nitro-Backend/docker-compose.yml exec backend yarn run db:seed > /dev/null
|
||||
- wait-on http://localhost:3000
|
||||
- cypress run --record --key $CYPRESS_TOKEN
|
||||
|
||||
after_success:
|
||||
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user