Commit 10c53951 authored by Richard Smith-Unna's avatar Richard Smith-Unna

Fixup test running & ci

parent 0afc8bcd
Pipeline #1087 failed with stage
in 1 minute and 16 seconds
before_script:
- apt-get update -y
- apt-get install -y libssl-dev build-essential wget
- npm install -g node-gyp
- npm install -g mocha
- npm install
- yarn
test:
script:
- npm run test
- xvfb-run --server-args "-screen 0 1024x768x24" yarn run testdocker
......@@ -4,7 +4,9 @@
"main": "src/index.js",
"scripts": {
"compile": "babel --presets es2015,react -d lib/ src/",
"test": "./test/helpers/setup.js && NODE_ENV=test jest; ./test/helpers/cleanup.js",
"test": "NODE_ENV=test ./test/helpers/setup.js && NODE_ENV=test jest; ./test/helpers/cleanup.js",
"testdocker": "NODE_ENV=test ./test/helpers/setup.js && NODE_ENV=test jest --runInBand --no-watchman --no-cache --verbose --forceExit; ./test/helpers/cleanup.js",
"testci": "gitlab-ci-multi-runner exec docker --docker-image=pubsweet/pubsweet-test-base test",
"eslint": "eslint"
},
"engines": {
......@@ -68,6 +70,7 @@
"expose-loader": "^0.7.0",
"file-api": "^0.10.4",
"formdata-polyfill": "^1.0.4",
"isomorphic-form-data": "^1.0.0",
"jest": "^19.0.1",
"node-localstorage": "^1.3.0",
"pubsweet": "git+https://gitlab.coko.foundation/pubsweet/pubsweet-cli.git#testing",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment