forked from modelica/ModelicaSpecification
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request modelica#2479 from otronarp/merge-in-master
Merge master into the MCP branch
- Loading branch information
Showing
60 changed files
with
4,506 additions
and
3,950 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
pipeline { | ||
agent none | ||
options { | ||
disableConcurrentBuilds() | ||
} | ||
stages { | ||
stage('checks') { | ||
agent { | ||
docker { | ||
image 'alpine:3.9' | ||
label 'linux' | ||
} | ||
} | ||
steps { | ||
sh label: "Find files with trailing whitespace", script: '! grep -n "[ \t]$" *.tex chapters/*.tex' | ||
} | ||
} | ||
stage('build') { | ||
agent { | ||
docker { | ||
image 'modelicaspec/latexml:20190319' | ||
label 'linux' | ||
alwaysPull true | ||
} | ||
} | ||
steps { | ||
sh 'latexmk -pdf MLS.tex' | ||
sh 'latexml MLS.tex --dest MLS.xml' | ||
sh 'latexmlpost MLS.xml -format html -pmml --splitat=chapter --javascript=css/LatexML-maybeMathJax.js --navigationtoc=context --css=css/LaTeXML-navbar-left.css --dest MLS.html' | ||
sh 'tar czf MLS.tar.gz *.html *.css media css/' | ||
archiveArtifacts artifacts: 'MLS.tar.gz', fingerprint: true | ||
archiveArtifacts artifacts: 'MLS.pdf', fingerprint: true | ||
stash name: 'MLS', includes: '*.html,*.css,MLS.pdf,media/**,css/**,MLS.tar.gz' | ||
} | ||
} | ||
stage('upload') { | ||
when { | ||
allOf { | ||
not { | ||
changeRequest() | ||
} | ||
anyOf { | ||
buildingTag() | ||
anyOf { | ||
branch 'master' | ||
} | ||
} | ||
} | ||
beforeAgent true | ||
} | ||
agent { | ||
label 'linux' | ||
} | ||
steps { | ||
unstash name: 'MLS' | ||
sh "test ! -z ${env.GIT_BRANCH}" | ||
sshPublisher(publishers: [sshPublisherDesc(configName: 'ModelicaSpecification', transfers: [sshTransfer(remoteDirectory: "${env.GIT_BRANCH}", sourceFiles: '*.html,*.css,MLS.pdf,media/**,css/**')])]) | ||
} | ||
} | ||
stage('index') { | ||
agent { | ||
docker { | ||
image 'modelicaspec/markdown:20190307' | ||
label 'linux' | ||
alwaysPull true | ||
} | ||
} | ||
when { | ||
allOf { | ||
not { | ||
changeRequest() | ||
} | ||
branch 'master' | ||
} | ||
beforeAgent true | ||
} | ||
steps { | ||
sh 'python3 .CI/index.py' | ||
sshPublisher(publishers: [sshPublisherDesc(configName: 'ModelicaSpecification', transfers: [sshTransfer(sourceFiles: 'index.html')])]) | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import markdown, sys | ||
import xml.etree.ElementTree as ET | ||
xml = "<xml>" + markdown.markdown(open('README.md', encoding="utf-8").read(), extensions=['markdown.extensions.tables']) + "</xml>" | ||
root = ET.fromstring(xml) | ||
for elem in root.findall('.//table'): | ||
f = open("index.html", "w") | ||
f.write("<html>") | ||
f.write(ET.tostring(elem).decode('utf-8')) | ||
f.write("</html>") | ||
sys.exit(0) | ||
sys.exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM modelicaspec/latexml:20190214 | ||
|
||
RUN tlmgr install parskip etoolbox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM ubuntu:bionic | ||
|
||
ENV PATH="/usr/local/texlive/bin/x86_64-linux:${PATH}" | ||
|
||
RUN sed -i s,http://archive.ubuntu.com/ubuntu/,mirror://mirrors.ubuntu.com/mirrors.txt, /etc/apt/sources.list \ | ||
&& apt-get update \ | ||
&& export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get install -qy perl ca-certificates make libxslt1.1 libxslt-dev libxml2 libxml2-dev gcc wget curl git unzip cpanminus --no-install-recommends --no-install-suggests \ | ||
&& export PATH="/tmp/texlive/bin/x86_64-linux:$PATH" \ | ||
&& REMOTE="http://mirror.ctan.org/systems/texlive/tlnet" \ | ||
&& INSTALL="/tmp/install-texlive" \ | ||
&& mkdir -p $INSTALL \ | ||
&& echo "export PATH=$PATH:/usr/local/texlive/2018/bin" >> /etc/environment \ | ||
&& curl -sSL $REMOTE/install-tl-unx.tar.gz | tar -xzv -C $INSTALL --strip-components=1 \ | ||
&& echo selected_scheme scheme-basic > texlive.profile \ | ||
&& echo TEXDIR /usr/local/texlive/ >> texlive.profile \ | ||
&& echo TEXMFLOCAL /usr/local/texmf-local >> texlive.profile \ | ||
&& echo TEXMFSYSCONFIG /usr/local/texmf-config >> texlive.profile \ | ||
&& echo TEXMFSYSVAR /usr/local/texmf-var >> texlive.profile \ | ||
&& echo tlpdbopt_autobackup 0 >> texlive.profile \ | ||
&& echo tlpdbopt_install_docfiles 0 >> texlive.profile \ | ||
&& echo tlpdbopt_install_srcfiles 0 >> texlive.profile \ | ||
&& $INSTALL/install-tl --profile texlive.profile \ | ||
&& rm texlive.profile \ | ||
&& tlmgr update --self --all --reinstall-forcibly-removed \ | ||
&& tlmgr install latexmk listings xcolor float multirow tocloft parskip etoolbox \ | ||
&& cpanm JSON \ | ||
&& cpanm --notest https://github.com/HansOlsson/LaTeXML.git@UseLabel \ | ||
&& apt-get autoremove -qy make gcc curl wget git cpanminus libxml2-dev libxslt-dev \ | ||
&& latexmk --version \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/ /root/.cpanm/work* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM alpine:3.9 | ||
|
||
RUN apk add -U --no-cache py3-pip py3-lxml && pip3 install py-gfm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,3 +146,8 @@ sympy-plots-for-*.tex/ | |
*.xml | ||
|
||
MLS\.pdf | ||
|
||
LaTeXML.css | ||
MLS.tar.gz | ||
ltx-listings.css | ||
ltx-report.css |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.