mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-08-03 09:31:52 +00:00
Added before_script to run server before cypress tests
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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": [
|
||||||
|
|||||||
Reference in New Issue
Block a user