|
| 1 | +A possible testing session... |
| 2 | + |
| 3 | +Note: if you just want to *test* or *try* something, and do not plan to make any changes, all forking and making-new-branches can be skipped. |
| 4 | + |
| 5 | +* Fork, clone and checkout your copy of ximeraExamples |
| 6 | +``` |
| 7 | +~/git/ximera/ximeraExamples$ git pull |
| 8 | +Already up to date. |
| 9 | +``` |
| 10 | +* Create a new branch for your new development/test (optional) |
| 11 | + * The new branch is only needed if you foresee to make new test, or adapt existing ones |
| 12 | +``` |
| 13 | +~/git/ximera/ximeraExamples$ git checkout -b test-link |
| 14 | +Switched to a new branch 'test-link' |
| 15 | +``` |
| 16 | + |
| 17 | +* Setup the to be tested/changed ximeraLatex version: |
| 18 | + * if testing a dockerimage, update config.txt(local PC) or docker_compose.yml (in Codespace) |
| 19 | + * if you need to try a fix to the contents of the dockerimage, use can use 'xmlatex copySettingsLocal' to create a .ximera_local with the ximealatex contents from the current image. |
| 20 | + * if testing an existing ximeraLatex branch (perhaps on a clone somewhere) : check it out in .ximera_local |
| 21 | + * if making new changes to ximeraLatex: fork, clone, and checkout a new branch |
| 22 | + |
| 23 | +``` |
| 24 | +~/git/ximera/ximeraExamples$ git clone https://github.com/bartsnapp/ximeraLatexFrameDev.git .ximera_local |
| 25 | +Cloning into '.ximera_local'... |
| 26 | +remote: Enumerating objects: 4273, done. |
| 27 | +remote: Counting objects: 100% (284/284), done. |
| 28 | +remote: Compressing objects: 100% (92/92), done. |
| 29 | +remote: Total 4273 (delta 208), reused 193 (delta 192), pack-reused 3989 (from 3) |
| 30 | +Receiving objects: 100% (4273/4273), 6.12 MiB | 4.84 MiB/s, done. |
| 31 | +Resolving deltas: 100% (2753/2753), done. |
| 32 | +``` |
| 33 | +* Use, update or create a relevant test |
| 34 | + * you can use the VSCode 'PDF' or 'HTML' buttons, or the xmlatex script (see infra) |
| 35 | + * not the 'USING .ximera_local from local repo' line in the output when you made a .ximera_local |
| 36 | + * the .log file wiyll contain detailed info about which files where actually used/included |
| 37 | +``` |
| 38 | +~/git/ximera/ximeraExamples$ xmlatex ghaction testXourses.TODO/linkTest.tex |
| 39 | +Restarting myself in docker (from image ghcr.io/ximeraproject/ximeralatex:v2.7.0) |
| 40 | +Starting /usr/local/bin/xmlatex ghaction testXourses.TODO/linkTest.tex (on host docker-desktop, i.e. inside a docker container) |
| 41 | +USING .ximera_local from local repo |
| 42 | +Starting Github-action build (name; bake/frost/serve) |
| 43 | +[INFO ] main : Set compile_sequence=pdf,html (and output_formats=pdf,html) |
| 44 | +[INFO ] main : Processing argument 1: testXourses.TODO/linkTest.tex |
| 45 | +[INFO ] files: Marked source tex NO_COMPILATION for examples.TODO/links/links.tex |
| 46 | +[INFO ] files: Marked source tex NEEDS_COMPILATIONS for testXourses.TODO/linkTest.tex |
| 47 | +[STATUS ] main : 1 file needs compiling: testXourses.TODO/linkTest.tex |
| 48 | +[STATUS ] main : Start bake |
| 49 | +[INFO ] bake : Added 2 compile commands for file 1/1: testXourses.TODO/linkTest.tex |
| 50 | +[STATUS ] bake : There are 2 commands to run for 1 files |
| 51 | +[STATUS ] bake : Command 1/2 (1) starting for pdf of testXourses.TODO/linkTest.tex (pdf|testXourses.TODO/linkTest.tex) |
| 52 | +[STATUS ] bake : Command 2/2 (2) starting for html of testXourses.TODO/linkTest.tex (html|testXourses.TODO/linkTest.tex) |
| 53 | +[STATUS ] bake : Command 2/2 (2) returns OK after 7.5 seconds (0 failed) for html of testXourses.TODO/linkTest.tex |
| 54 | +[INFO ] bake : Command html|testXourses.TODO/linkTest.tex scheduled for RETRY (was job 2 (2)) |
| 55 | +[STATUS ] bake : Command 2r/2 (2) starting for html of testXourses.TODO/linkTest.tex (html|testXourses.TODO/linkTest.tex) |
| 56 | +[INFO ] bake : Moving /code/testXourses.TODO/linkTest.pdf to ximera-downloads/with-answers/testXourses.TODO/linkTest.pdf |
| 57 | +[STATUS ] bake : Command 1/2 (1) returns OK after 10.0 seconds (0 failed) for pdf of testXourses.TODO/linkTest.tex |
| 58 | +[INFO ] html : No parts found, adding one, as this is needed in (some versions of) the ximeraServer |
| 59 | +[INFO ] html : Adapted html being saved as testXourses.TODO/linkTest.html (/code/testXourses.TODO/linkTest.html) |
| 60 | +[STATUS ] bake : Command 2r/2 (2) returns OK after 5.0 seconds (0 failed) for html of testXourses.TODO/linkTest.tex |
| 61 | +[STATUS ] bake : Finished compiling 1 files in 13.6 seconds |
| 62 | +[STATUS ] main : Bake succeeded: Baked 1 files, no errors found |
| 63 | +[INFO ] main : Mmm, file testXourses.TODO/linkTest.tex still needs compilation. |
| 64 | +[INFO ] main : Still 1 files to be compiled after bake. |
| 65 | +[STATUS ] main : Start frost |
| 66 | +[WARNING] frost: There are 2 uncommitted files; should serve only to localhost |
| 67 | +[WARNING] frost: There are 1 file to be compiled; should serve only to localhost |
| 68 | +[INFO ] frost: Adding XOURSE testXourses.TODO/linkTest.tex (Master link Test Xourse) |
| 69 | +[INFO ] frost: Found publications/0333286ab0e4c1ceb1046418afcc88032080ff59 (tree:e58298d99203d801017d707c551651ab53fdce1f tag:0333286ab0e4c1ceb1046418afcc88032080ff59) |
| 70 | +[STATUS ] frost: Creating tag publications/a40cd692e6e6af56fd0ce8fc37f7db318d567d35 for a40cd692e6e6af56fd0ce8fc37f7db318d567d35 |
| 71 | +[STATUS ] main : Frost succeeded: Created publications/a40cd692e6e6af56fd0ce8fc37f7db318d567d35 |
| 72 | +[STATUS ] main : Start serve |
| 73 | +[INFO ] frost: Publishing to localhost: http://localhost:2000/ximeraexamples.git |
| 74 | +[STATUS ] frost: Forced serving (git push -f ximera publications/a40cd692e6e6af56fd0ce8fc37f7db318d567d35) |
| 75 | +[STATUS ] frost: Forced serving (git push -f ximera a40cd692e6e6af56fd0ce8fc37f7db318d567d35:refs/heads/master) |
| 76 | +[STATUS ] main : Serve succeeded: Published publications/a40cd692e6e6af56fd0ce8fc37f7db318d567d35to http://localhost:2000/ximeraexamples |
| 77 | +``` |
| 78 | + * Verify the output |
| 79 | + |
| 80 | +* If yoy make useful changes in .ximera_local : commit and push, make a pull request for ximeraLatex |
| 81 | +* If you make useful changes in ximeraExamples: commit and push, make a pull request for ximeraExamples |
| 82 | +* when in doubt, or when this procedure does not work as advertized: contact ximera-project! |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
0 commit comments