slatex / LaTeXML-Plugin-sTeX

A LaTeXML Plugin for Semantic LaTeX (sTeX)
LaTeX Project Public License v1.3c
2 stars 3 forks source link

Model integration #88

Closed angerhang closed 8 years ago

angerhang commented 8 years ago

Follow up for #85 . Sorry for the confusion.

Due to the previous setup, the old integration would paralyze the travis test. The travis test doesn't like to execute shell command during build process. So I removed the make integration for updating the model in the other pull request.

Given trang is not found, the current approach silences the error if the plugin is being installed via cpanm, and throws a non-blocking error when it is being installed manually, which is actually better, because trang is not a must have requirement for running the plugin, and thus not having it shouldn't block the whole installation process.

This is how it looks like during the installation without trang

Hangs-MBP:LaTeXML-Plugin-sTeX Hang$ perl Makefile.PL 
/usr/bin/type: line 4: type: trang: not found

Trang is not found which could lead to a make failure.
You can ignore this message if you do not intend to change the schema.
See README for more info!

make: trang: No such file or directory
make: *** [LaTeXML.rng] Error 1
Generating a Unix-style Makefile
Writing Makefile for LaTeXML::Plugin::sTeX
Writing MYMETA.yml and MYMETA.json
Hangs-MBP:LaTeXML-Plugin-sTeX Hang$ cpanm . -n
--> Working on .
Configuring /Users/Hang/kwarc/LaTeXML-Plugin-sTeX ... OK
Building LaTeXML-Plugin-sTeX-0.2 ... OK
Successfully installed LaTeXML-Plugin-sTeX-0.2
1 distribution installed
angerhang commented 8 years ago

And the travis tests pass :)