Просмотр исходного кода

[misc] make build scripts happy again

- move pdf.js tests into test/unit/js
- add env override to build script config file
- update build scripts
Jakob Ackermann 5 лет назад
Родитель
Сommit
76e749777d
27 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      services/clsi/buildscript.txt
  2. 1 1
      services/clsi/package.json
  3. 1 1
      services/clsi/test/unit/js/pdfjsTests.js
  4. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/asymptote/XrefTable.json
  5. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/biber_bibliography/XrefTable.json
  6. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/epstopdf/XrefTable.json
  7. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/feynmf/XrefTable.json
  8. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/feynmp/XrefTable.json
  9. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/fontawesome/XrefTable.json
  10. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/fontawesome_xelatex/XrefTable.json
  11. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/glossaries/XrefTable.json
  12. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/gnuplot/XrefTable.json
  13. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/hebrew/XrefTable.json
  14. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/knitr/XrefTable.json
  15. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/knitr_utf8/XrefTable.json
  16. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/latex_compiler/XrefTable.json
  17. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/lualatex_compiler/XrefTable.json
  18. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/makeindex-custom-style/XrefTable.json
  19. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/makeindex/XrefTable.json
  20. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/minted/XrefTable.json
  21. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/multibib_bibliography/XrefTable.json
  22. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/nomenclature/XrefTable.json
  23. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/references_in_include/XrefTable.json
  24. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/simple_bibliography/XrefTable.json
  25. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/subdirectories/XrefTable.json
  26. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/tikz_feynman/XrefTable.json
  27. 0 0
      services/clsi/test/unit/js/snapshots/pdfjs/xelatex_compiler/XrefTable.json

+ 1 - 1
services/clsi/buildscript.txt

@@ -2,7 +2,7 @@ clsi
 --data-dirs=cache,compiles,db,output
 --dependencies=
 --docker-repos=gcr.io/overleaf-ops
---env-add=
+--env-add=ENABLE_PDF_CACHING="true"
 --env-pass-through=TEXLIVE_IMAGE
 --node-version=12.22.3
 --public-repo=True

+ 1 - 1
services/clsi/package.json

@@ -10,7 +10,7 @@
     "start": "node $NODE_APP_OPTIONS app.js",
     "test:acceptance:_run": "mocha --recursive --reporter spec --timeout 15000 --exit $@ test/acceptance/js",
     "test:acceptance": "npm run test:acceptance:_run -- --grep=$MOCHA_GREP",
-    "test:unit:_run": "mocha --recursive --reporter spec $@ test/unit/js test/unit/lib",
+    "test:unit:_run": "mocha --recursive --reporter spec $@ test/unit/js",
     "test:unit": "npm run test:unit:_run -- --grep=$MOCHA_GREP",
     "nodemon": "nodemon --config nodemon.json",
     "lint": "eslint --max-warnings 0 --format unix .",

+ 1 - 1
services/clsi/test/unit/lib/pdfjsTests.js → services/clsi/test/unit/js/pdfjsTests.js

@@ -3,7 +3,7 @@ const Path = require('path')
 const { expect } = require('chai')
 const { parseXrefTable } = require('../../../app/lib/pdfjs/parseXrefTable')
 const PATH_EXAMPLES = 'test/acceptance/fixtures/examples/'
-const PATH_SNAPSHOTS = 'test/unit/lib/snapshots/'
+const PATH_SNAPSHOTS = 'test/unit/js/snapshots/pdfjs/'
 const EXAMPLES = fs.readdirSync(PATH_EXAMPLES)
 
 function snapshotPath(example) {

+ 0 - 0
services/clsi/test/unit/lib/snapshots/asymptote/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/asymptote/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/biber_bibliography/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/biber_bibliography/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/epstopdf/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/epstopdf/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/feynmf/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/feynmf/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/feynmp/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/feynmp/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/fontawesome/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/fontawesome/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/fontawesome_xelatex/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/fontawesome_xelatex/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/glossaries/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/glossaries/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/gnuplot/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/gnuplot/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/hebrew/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/hebrew/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/knitr/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/knitr/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/knitr_utf8/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/knitr_utf8/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/latex_compiler/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/latex_compiler/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/lualatex_compiler/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/lualatex_compiler/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/makeindex-custom-style/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/makeindex-custom-style/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/makeindex/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/makeindex/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/minted/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/minted/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/multibib_bibliography/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/multibib_bibliography/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/nomenclature/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/nomenclature/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/references_in_include/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/references_in_include/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/simple_bibliography/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/simple_bibliography/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/subdirectories/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/subdirectories/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/tikz_feynman/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/tikz_feynman/XrefTable.json


+ 0 - 0
services/clsi/test/unit/lib/snapshots/xelatex_compiler/XrefTable.json → services/clsi/test/unit/js/snapshots/pdfjs/xelatex_compiler/XrefTable.json