Added before_script to run server before cypress tests

This commit is contained in:
Przemek Wiech
2020-03-06 21:52:58 +01:00
parent 2782e9d90a
commit ac9f6f475d
2 changed files with 7 additions and 2 deletions

View File

@@ -6,7 +6,11 @@ addons:
packages: packages:
# Ubuntu 16+ does not install this dependency by default, so we need to install it ourselves # Ubuntu 16+ does not install this dependency by default, so we need to install it ourselves
- libgconf-2-4 - libgconf-2-4
before_script:
- npm start -- --silent &
script: script:
- npm run build - npm run build
- npm test - npm test
- $(npm bin)/cypress run --record - npm run cypress:run

View File

@@ -58,7 +58,8 @@
"predeploy": "npm run build", "predeploy": "npm run build",
"deploy": "gh-pages -d build", "deploy": "gh-pages -d build",
"predeploy-wikitree": "npm run build", "predeploy-wikitree": "npm run build",
"deploy-wikitree": "./deploy-wikitree.sh" "deploy-wikitree": "./deploy-wikitree.sh",
"cypress:run": "cypress run"
}, },
"homepage": ".", "homepage": ".",
"browserslist": [ "browserslist": [