mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #2 from overleaf/circleci-project-setup
Add .circleci/config.yml and fix errors
This commit is contained in:
commit
588979bbff
4 changed files with 21 additions and 9 deletions
17
libraries/object-persistor/.circleci/config.yml
Normal file
17
libraries/object-persistor/.circleci/config.yml
Normal file
|
@ -0,0 +1,17 @@
|
|||
version: 2.1
|
||||
orbs:
|
||||
node: circleci/node@1.1.6
|
||||
jobs:
|
||||
build-and-test:
|
||||
executor:
|
||||
name: node/default
|
||||
steps:
|
||||
- checkout
|
||||
- node/with-cache:
|
||||
steps:
|
||||
- run: npm install
|
||||
- run: npm test
|
||||
workflows:
|
||||
build-and-test:
|
||||
jobs:
|
||||
- build-and-test
|
|
@ -29,10 +29,12 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"chai": "^4.2.0",
|
||||
"chai-as-promised": "^7.1.1",
|
||||
"eslint-config-prettier": "^6.11.0",
|
||||
"eslint-config-standard": "^14.1.1",
|
||||
"eslint-plugin-chai-expect": "^2.1.0",
|
||||
"eslint-plugin-chai-friendly": "^0.6.0",
|
||||
"eslint-plugin-import": "^2.22.0",
|
||||
"eslint-plugin-mocha": "^7.0.1",
|
||||
"eslint-plugin-node": "^11.1.0",
|
||||
"eslint-plugin-prettier": "^3.1.4",
|
||||
|
|
|
@ -62,8 +62,7 @@ describe('FSPersistorTests', function () {
|
|||
crypto,
|
||||
'node-uuid': uuid,
|
||||
// imported by PersistorHelper but otherwise unused here
|
||||
'logger-sharelatex': {},
|
||||
'metrics-sharelatex': {}
|
||||
'logger-sharelatex': {}
|
||||
},
|
||||
globals: { console }
|
||||
}))({ paths: { uploadFolder: '/tmp' } })
|
||||
|
|
|
@ -28,8 +28,7 @@ describe('S3PersistorTests', function () {
|
|||
const filesSize = 33
|
||||
const md5 = 'ffffffff00000000ffffffff00000000'
|
||||
|
||||
let Metrics,
|
||||
Logger,
|
||||
let Logger,
|
||||
Transform,
|
||||
S3,
|
||||
Fs,
|
||||
|
@ -73,10 +72,6 @@ describe('S3PersistorTests', function () {
|
|||
promise: sinon.stub().resolves()
|
||||
}
|
||||
|
||||
Metrics = {
|
||||
count: sinon.stub()
|
||||
}
|
||||
|
||||
ReadStream = {
|
||||
pipe: sinon.stub().returns('readStream'),
|
||||
on: sinon.stub(),
|
||||
|
@ -155,7 +150,6 @@ describe('S3PersistorTests', function () {
|
|||
'./Errors': Errors,
|
||||
fs: Fs,
|
||||
stream: Stream,
|
||||
'metrics-sharelatex': Metrics,
|
||||
crypto
|
||||
},
|
||||
globals: { console, Buffer }
|
||||
|
|
Loading…
Reference in a new issue