mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Switch to node 10
This commit is contained in:
parent
c6a986feb0
commit
7a3f1c81bd
5 changed files with 1990 additions and 1068 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM node:6.15.1 as app
|
||||
FROM node:10.15.0 as app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
@ -12,7 +12,7 @@ COPY . /app
|
|||
|
||||
RUN npm run compile:all
|
||||
|
||||
FROM node:6.15.1
|
||||
FROM node:10.15.0
|
||||
|
||||
COPY --from=app /app /app
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ app.get "/health_check", (req, res)->
|
|||
app.get "/smoke_test_force", (req, res)->
|
||||
smokeTest.run(require.resolve(__dirname + "/test/smoke/js/SmokeTests.js"))(req, res)
|
||||
|
||||
profiler = require "v8-profiler"
|
||||
profiler = require "v8-profiler-node8"
|
||||
app.get "/profile", (req, res) ->
|
||||
time = parseInt(req.query.time || "1000")
|
||||
profiler.startProfiling("test")
|
||||
|
|
3041
services/clsi/npm-shrinkwrap.json
generated
3041
services/clsi/npm-shrinkwrap.json
generated
File diff suppressed because it is too large
Load diff
|
@ -37,15 +37,15 @@
|
|||
"sequelize": "^4.38.0",
|
||||
"settings-sharelatex": "git+https://github.com/sharelatex/settings-sharelatex.git#v1.1.0",
|
||||
"smoke-test-sharelatex": "git+https://github.com/sharelatex/smoke-test-sharelatex.git#v0.2.0",
|
||||
"sqlite3": "^4.0.2",
|
||||
"sqlite3": "^4.0.6",
|
||||
"underscore": "^1.8.2",
|
||||
"v8-profiler": "^5.2.4",
|
||||
"v8-profiler-node8": "^6.0.1",
|
||||
"wrench": "~1.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"bunyan": "^0.22.1",
|
||||
"chai": "~1.8.1",
|
||||
"coffee-script": "1.6.0",
|
||||
"coffeescript": "1.6.0",
|
||||
"mocha": "^4.0.1",
|
||||
"sandboxed-module": "~0.3.0",
|
||||
"sinon": "~1.7.3",
|
||||
|
|
|
@ -33,7 +33,10 @@ compare = (originalPath, generatedPath, callback = (error, same) ->) ->
|
|||
proc.stderr.on "data", (chunk) -> stderr += chunk
|
||||
proc.on "exit", () ->
|
||||
if stderr.trim() == "0 (0)"
|
||||
fs.unlink diff_file # remove output diff if test matches expected image
|
||||
# remove output diff if test matches expected image
|
||||
fs.unlink diff_file, (err) ->
|
||||
if err
|
||||
throw err
|
||||
callback null, true
|
||||
else
|
||||
console.log "compare result", stderr
|
||||
|
|
Loading…
Reference in a new issue