mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #4689 from overleaf/jpa-libraries-ci
[misc] setup cloud build trigger for libraries GitOrigin-RevId: a66dd3e96cb1c06d4803a2162278959357694048
This commit is contained in:
parent
937f9e3c51
commit
6a0388ff9b
16 changed files with 89 additions and 11 deletions
9
libraries/access-token-encryptor/buildscript.txt
Normal file
9
libraries/access-token-encryptor/buildscript.txt
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
access-token-encryptor
|
||||||
|
--dependencies=None
|
||||||
|
--docker-repos=gcr.io/overleaf-ops
|
||||||
|
--env-add=
|
||||||
|
--env-pass-through=
|
||||||
|
--is-library=True
|
||||||
|
--node-version=12.22.3
|
||||||
|
--public-repo=False
|
||||||
|
--script-version=3.11.0
|
|
@ -5,7 +5,10 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "mocha test/**/*.js"
|
"test": "mocha test/**/*.js",
|
||||||
|
"lint": "echo noop",
|
||||||
|
"format": "echo noop",
|
||||||
|
"test:ci": "npm run test"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "Proprietary",
|
"license": "Proprietary",
|
||||||
|
|
9
libraries/logger/buildscript.txt
Normal file
9
libraries/logger/buildscript.txt
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
logger
|
||||||
|
--dependencies=None
|
||||||
|
--docker-repos=gcr.io/overleaf-ops
|
||||||
|
--env-add=
|
||||||
|
--env-pass-through=
|
||||||
|
--is-library=True
|
||||||
|
--node-version=12.22.3
|
||||||
|
--public-repo=False
|
||||||
|
--script-version=3.11.0
|
|
@ -12,7 +12,8 @@
|
||||||
"test": "mocha --grep=$MOCHA_GREP test/**/*.js",
|
"test": "mocha --grep=$MOCHA_GREP test/**/*.js",
|
||||||
"format": "prettier-eslint $PWD'/**/*.js' --list-different",
|
"format": "prettier-eslint $PWD'/**/*.js' --list-different",
|
||||||
"format:fix": "prettier-eslint $PWD'/**/*.js' --write",
|
"format:fix": "prettier-eslint $PWD'/**/*.js' --write",
|
||||||
"lint": "eslint -f unix ."
|
"lint": "eslint -f unix .",
|
||||||
|
"test:ci": "npm run test"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@google-cloud/logging-bunyan": "^3.0.0",
|
"@google-cloud/logging-bunyan": "^3.0.0",
|
||||||
|
|
9
libraries/metrics/buildscript.txt
Normal file
9
libraries/metrics/buildscript.txt
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
metrics
|
||||||
|
--dependencies=None
|
||||||
|
--docker-repos=gcr.io/overleaf-ops
|
||||||
|
--env-add=
|
||||||
|
--env-pass-through=
|
||||||
|
--is-library=True
|
||||||
|
--node-version=12.22.3
|
||||||
|
--public-repo=False
|
||||||
|
--script-version=3.11.0
|
|
@ -39,6 +39,7 @@
|
||||||
"test:acceptance": "mocha --reporter spec --recursive --exit --grep=$MOCHA_GREP test/acceptance",
|
"test:acceptance": "mocha --reporter spec --recursive --exit --grep=$MOCHA_GREP test/acceptance",
|
||||||
"test": "npm run test:unit && npm run test:acceptance",
|
"test": "npm run test:unit && npm run test:acceptance",
|
||||||
"format": "prettier-eslint $PWD'/**/*.js' --list-different",
|
"format": "prettier-eslint $PWD'/**/*.js' --list-different",
|
||||||
"format:fix": "prettier-eslint $PWD'/**/*.js' --write"
|
"format:fix": "prettier-eslint $PWD'/**/*.js' --write",
|
||||||
|
"test:ci": "npm run test"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -170,8 +170,8 @@ describe('Metrics module', function() {
|
||||||
await expectMetricValue(keyServer1, 2)
|
await expectMetricValue(keyServer1, 2)
|
||||||
})
|
})
|
||||||
|
|
||||||
it('emits 2 open_connections for server1', async function() {
|
it('emits 2 open_connections for server2', async function() {
|
||||||
await expectMetricValue(keyServer1, 2)
|
await expectMetricValue(keyServer2, 2)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
9
libraries/o-error/buildscript.txt
Normal file
9
libraries/o-error/buildscript.txt
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
o-error
|
||||||
|
--dependencies=None
|
||||||
|
--docker-repos=gcr.io/overleaf-ops
|
||||||
|
--env-add=
|
||||||
|
--env-pass-through=
|
||||||
|
--is-library=True
|
||||||
|
--node-version=12.22.3
|
||||||
|
--public-repo=False
|
||||||
|
--script-version=3.11.0
|
|
@ -29,7 +29,9 @@
|
||||||
"test": "mocha",
|
"test": "mocha",
|
||||||
"test:coverage": "nyc --reporter=lcov --reporter=text-summary npm run test",
|
"test:coverage": "nyc --reporter=lcov --reporter=text-summary npm run test",
|
||||||
"typecheck": "tsc --allowJs --checkJs --noEmit --moduleResolution node --strict --target ES6 *.js test/**/*.js",
|
"typecheck": "tsc --allowJs --checkJs --noEmit --moduleResolution node --strict --target ES6 *.js test/**/*.js",
|
||||||
"update-readme": "doc/update-readme.js"
|
"update-readme": "doc/update-readme.js",
|
||||||
|
"format": "echo noop",
|
||||||
|
"test:ci": "npm run typecheck && npm run test"
|
||||||
},
|
},
|
||||||
"author": "Overleaf (https://www.overleaf.com)",
|
"author": "Overleaf (https://www.overleaf.com)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
9
libraries/object-persistor/buildscript.txt
Normal file
9
libraries/object-persistor/buildscript.txt
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
object-persistor
|
||||||
|
--dependencies=None
|
||||||
|
--docker-repos=gcr.io/overleaf-ops
|
||||||
|
--env-add=
|
||||||
|
--env-pass-through=
|
||||||
|
--is-library=True
|
||||||
|
--node-version=12.22.3
|
||||||
|
--public-repo=False
|
||||||
|
--script-version=3.11.0
|
|
@ -8,7 +8,8 @@
|
||||||
"test:unit": "mocha",
|
"test:unit": "mocha",
|
||||||
"lint": "eslint src test *.js",
|
"lint": "eslint src test *.js",
|
||||||
"format": "prettier-eslint $PWD'/**/*.js' --list-different",
|
"format": "prettier-eslint $PWD'/**/*.js' --list-different",
|
||||||
"format:fix": "prettier-eslint $PWD'/**/*.js' --write"
|
"format:fix": "prettier-eslint $PWD'/**/*.js' --write",
|
||||||
|
"test:ci": "npm run test:unit"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
9
libraries/redis-wrapper/buildscript.txt
Normal file
9
libraries/redis-wrapper/buildscript.txt
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
redis-wrapper
|
||||||
|
--dependencies=None
|
||||||
|
--docker-repos=gcr.io/overleaf-ops
|
||||||
|
--env-add=
|
||||||
|
--env-pass-through=
|
||||||
|
--is-library=True
|
||||||
|
--node-version=12.22.3
|
||||||
|
--public-repo=False
|
||||||
|
--script-version=3.11.0
|
|
@ -14,7 +14,8 @@
|
||||||
"lint": "eslint --max-warnings 0 .",
|
"lint": "eslint --max-warnings 0 .",
|
||||||
"format": "prettier-eslint $PWD'/**/*.js' --list-different",
|
"format": "prettier-eslint $PWD'/**/*.js' --list-different",
|
||||||
"format:fix": "prettier-eslint $PWD'/**/*.js' --write",
|
"format:fix": "prettier-eslint $PWD'/**/*.js' --write",
|
||||||
"test": "mocha --recursive test/unit/src/"
|
"test": "mocha --recursive test/unit/src/",
|
||||||
|
"test:ci": "npm run test"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@overleaf/o-error": "^3.1.0"
|
"@overleaf/o-error": "^3.1.0"
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* DS206: Consider reworking classes to avoid initClass
|
* DS206: Consider reworking classes to avoid initClass
|
||||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
||||||
*/
|
*/
|
||||||
const should = require('chai').should()
|
require('chai').should()
|
||||||
const SandboxedModule = require('sandboxed-module')
|
const SandboxedModule = require('sandboxed-module')
|
||||||
const assert = require('assert')
|
const assert = require('assert')
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
|
@ -91,7 +91,7 @@ describe('index', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
return it('should call createClient for the ioredis driver in single-instance mode if a non array is passed', function () {
|
return it('should call createClient for the ioredis driver in single-instance mode if a non array is passed', function () {
|
||||||
const client = this.redis.createClient(this.standardOpts)
|
this.redis.createClient(this.standardOpts)
|
||||||
return this.ioredisConstructor
|
return this.ioredisConstructor
|
||||||
.calledWith(sinon.match(this.standardOpts))
|
.calledWith(sinon.match(this.standardOpts))
|
||||||
.should.equal(true)
|
.should.equal(true)
|
||||||
|
|
9
libraries/settings/buildscript.txt
Normal file
9
libraries/settings/buildscript.txt
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
settings
|
||||||
|
--dependencies=None
|
||||||
|
--docker-repos=gcr.io/overleaf-ops
|
||||||
|
--env-add=
|
||||||
|
--env-pass-through=
|
||||||
|
--is-library=True
|
||||||
|
--node-version=12.22.3
|
||||||
|
--public-repo=False
|
||||||
|
--script-version=3.11.0
|
|
@ -2,5 +2,11 @@
|
||||||
"name": "@overleaf/settings",
|
"name": "@overleaf/settings",
|
||||||
"description": "A centralised settings system for Overleaf",
|
"description": "A centralised settings system for Overleaf",
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
"repository": "overleaf/settings-module"
|
"repository": "overleaf/settings-module",
|
||||||
|
"scripts": {
|
||||||
|
"lint": "echo noop",
|
||||||
|
"format": "echo noop",
|
||||||
|
"test": "echo noop",
|
||||||
|
"test:ci": "echo noop"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue