2021-03-19 14:07:15 +01:00
|
|
|
language: node_js
|
|
|
|
|
|
|
|
|
|
node_js:
|
|
|
|
|
- lts/*
|
|
|
|
|
|
|
|
|
|
os: linux
|
|
|
|
|
|
|
|
|
|
dist: xenial
|
|
|
|
|
|
|
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
packages:
|
|
|
|
|
- libgconf-2-4
|
|
|
|
|
|
2021-03-19 18:38:13 +01:00
|
|
|
cache:
|
|
|
|
|
yarn: true
|
|
|
|
|
directories:
|
|
|
|
|
- ~/.cache
|
|
|
|
|
|
|
|
|
|
branches:
|
|
|
|
|
only:
|
|
|
|
|
- main
|
2021-03-19 14:07:15 +01:00
|
|
|
|
|
|
|
|
script:
|
|
|
|
|
- yarn test --ci
|
|
|
|
|
- yarn dev & wait-on http://localhost:3000
|
2021-05-08 02:01:51 +02:00
|
|
|
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ];
|
|
|
|
|
then
|
|
|
|
|
yarn cy:run --record --key $CY_KEY;
|
|
|
|
|
else
|
|
|
|
|
yarn cy:run;
|
|
|
|
|
fi'
|