diff --git a/libraries/access-token-encryptor/buildscript.txt b/libraries/access-token-encryptor/buildscript.txt new file mode 100644 index 0000000000..689fc7fdf3 --- /dev/null +++ b/libraries/access-token-encryptor/buildscript.txt @@ -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 diff --git a/libraries/access-token-encryptor/package.json b/libraries/access-token-encryptor/package.json index c7aaa9a3f4..23122c895a 100644 --- a/libraries/access-token-encryptor/package.json +++ b/libraries/access-token-encryptor/package.json @@ -5,7 +5,10 @@ "private": true, "main": "index.js", "scripts": { - "test": "mocha test/**/*.js" + "test": "mocha test/**/*.js", + "lint": "echo noop", + "format": "echo noop", + "test:ci": "npm run test" }, "author": "", "license": "Proprietary", diff --git a/libraries/logger/buildscript.txt b/libraries/logger/buildscript.txt new file mode 100644 index 0000000000..7e4f7d2a2f --- /dev/null +++ b/libraries/logger/buildscript.txt @@ -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 diff --git a/libraries/logger/package.json b/libraries/logger/package.json index f429928eb6..3232929a02 100644 --- a/libraries/logger/package.json +++ b/libraries/logger/package.json @@ -12,7 +12,8 @@ "test": "mocha --grep=$MOCHA_GREP test/**/*.js", "format": "prettier-eslint $PWD'/**/*.js' --list-different", "format:fix": "prettier-eslint $PWD'/**/*.js' --write", - "lint": "eslint -f unix ." + "lint": "eslint -f unix .", + "test:ci": "npm run test" }, "dependencies": { "@google-cloud/logging-bunyan": "^3.0.0", diff --git a/libraries/metrics/buildscript.txt b/libraries/metrics/buildscript.txt new file mode 100644 index 0000000000..4d8e82e047 --- /dev/null +++ b/libraries/metrics/buildscript.txt @@ -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 diff --git a/libraries/metrics/package.json b/libraries/metrics/package.json index be8ff08387..c43a9987dd 100644 --- a/libraries/metrics/package.json +++ b/libraries/metrics/package.json @@ -39,6 +39,7 @@ "test:acceptance": "mocha --reporter spec --recursive --exit --grep=$MOCHA_GREP test/acceptance", "test": "npm run test:unit && npm run test:acceptance", "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" } } diff --git a/libraries/metrics/test/acceptance/metrics_tests.js b/libraries/metrics/test/acceptance/metrics_tests.js index 01b00b73d7..a3353ae342 100644 --- a/libraries/metrics/test/acceptance/metrics_tests.js +++ b/libraries/metrics/test/acceptance/metrics_tests.js @@ -170,8 +170,8 @@ describe('Metrics module', function() { await expectMetricValue(keyServer1, 2) }) - it('emits 2 open_connections for server1', async function() { - await expectMetricValue(keyServer1, 2) + it('emits 2 open_connections for server2', async function() { + await expectMetricValue(keyServer2, 2) }) }) diff --git a/libraries/o-error/buildscript.txt b/libraries/o-error/buildscript.txt new file mode 100644 index 0000000000..46774d0943 --- /dev/null +++ b/libraries/o-error/buildscript.txt @@ -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 diff --git a/libraries/o-error/package.json b/libraries/o-error/package.json index 4f81fe9c46..df3ba7d9e2 100644 --- a/libraries/o-error/package.json +++ b/libraries/o-error/package.json @@ -29,7 +29,9 @@ "test": "mocha", "test:coverage": "nyc --reporter=lcov --reporter=text-summary npm run test", "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)", "license": "MIT", diff --git a/libraries/object-persistor/buildscript.txt b/libraries/object-persistor/buildscript.txt new file mode 100644 index 0000000000..a63a165dcd --- /dev/null +++ b/libraries/object-persistor/buildscript.txt @@ -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 diff --git a/libraries/object-persistor/package.json b/libraries/object-persistor/package.json index fa0c24a8b9..12b1e8e39f 100644 --- a/libraries/object-persistor/package.json +++ b/libraries/object-persistor/package.json @@ -8,7 +8,8 @@ "test:unit": "mocha", "lint": "eslint src test *.js", "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": { "type": "git", diff --git a/libraries/redis-wrapper/buildscript.txt b/libraries/redis-wrapper/buildscript.txt new file mode 100644 index 0000000000..00315bdfe7 --- /dev/null +++ b/libraries/redis-wrapper/buildscript.txt @@ -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 diff --git a/libraries/redis-wrapper/package.json b/libraries/redis-wrapper/package.json index 94059efb57..c0af4d156a 100644 --- a/libraries/redis-wrapper/package.json +++ b/libraries/redis-wrapper/package.json @@ -14,7 +14,8 @@ "lint": "eslint --max-warnings 0 .", "format": "prettier-eslint $PWD'/**/*.js' --list-different", "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": { "@overleaf/o-error": "^3.1.0" diff --git a/libraries/redis-wrapper/test/unit/src/test.js b/libraries/redis-wrapper/test/unit/src/test.js index 50d859bd07..fcaf971985 100644 --- a/libraries/redis-wrapper/test/unit/src/test.js +++ b/libraries/redis-wrapper/test/unit/src/test.js @@ -4,7 +4,7 @@ * DS206: Consider reworking classes to avoid initClass * 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 assert = require('assert') 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 () { - const client = this.redis.createClient(this.standardOpts) + this.redis.createClient(this.standardOpts) return this.ioredisConstructor .calledWith(sinon.match(this.standardOpts)) .should.equal(true) diff --git a/libraries/settings/buildscript.txt b/libraries/settings/buildscript.txt new file mode 100644 index 0000000000..c0b5f97ba2 --- /dev/null +++ b/libraries/settings/buildscript.txt @@ -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 diff --git a/libraries/settings/package.json b/libraries/settings/package.json index 27fae668c3..327df711ec 100644 --- a/libraries/settings/package.json +++ b/libraries/settings/package.json @@ -2,5 +2,11 @@ "name": "@overleaf/settings", "description": "A centralised settings system for Overleaf", "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" + } }