diff --git a/.github/workflows/build-examples.yml b/.github/workflows/build-examples.yml index 4d3c49d..0606dfc 100644 --- a/.github/workflows/build-examples.yml +++ b/.github/workflows/build-examples.yml @@ -53,9 +53,9 @@ jobs: tlmgr install awesomebox fontawesome5 # packages only needed for some examples (example boxes-with-pandoc-latex-environment-and-tcolorbox) tlmgr install tcolorbox pgf etoolbox environ trimspaces - - name: Build pdf files + - name: Build examples run: cd examples && bash build-examples.sh && cd .. - - name: Archive production artifacts + - name: Add generated example files uses: actions/upload-artifact@v2 with: name: build-files @@ -66,7 +66,7 @@ jobs: run: | git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" - git commit -m "Add changes" -a + git commit -m "Add generated example files" -a - name: Push changes uses: ad-m/github-push-action@master if: github.event_name == 'push' && github.ref == 'refs/heads/master' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index b6d17c1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,62 +0,0 @@ -os: linux -dist: bionic -language: java -before_install: - # default pandoc is too old -> install a newer version manually - - PANDOC_VERSION="2.19.2" - - pandoc_deb="pandoc-${PANDOC_VERSION}-1-amd64.deb" - - wget "https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/${pandoc_deb}" - - sudo dpkg -i ${pandoc_deb} - - rm ${pandoc_deb} - - # default textlife from apt-get is too old - # install the latest texlife version manually - - REMOTE="http://mirror.ctan.org/systems/texlive/tlnet" - - INSTALL="/tmp/install-texlive" - - mkdir -p $INSTALL - - curl -sSL $REMOTE/install-tl-unx.tar.gz | tar -xzv -C $INSTALL --strip-components=1 - - sudo $INSTALL/install-tl -no-gui -profile .texlife.profile - - VERSION=$($INSTALL/install-tl --version | grep 'version' | grep -o '[0-9]\{4\}') - - PLATFORM=$($INSTALL/install-tl --print-platform) - - TEXLIVE_DIR="/usr/local/texlive/${VERSION}" - - TEXBIN="/usr/local/texlive/${VERSION}/bin/${PLATFORM}" - - export "PATH=$TEXBIN:$PATH" - - # initialization for tlmgr - - sudo apt-get install xzdec - - tlmgr init-usertree - - # install pdftoppm for rendering the PDFs - - sudo apt-get install poppler-utils - - # for executing python based pandoc filters install python and pip - - sudo apt-get install python3 - - sudo apt-get install python3-pip - - sudo pip3 install --upgrade setuptools - - sudo pip3 install wheel - - # install python filters - - pip3 install pandoc-latex-environment - - # packages specified in the template - #- sudo $(which tlmgr) install adjustbox afterpage amsmath amssymb babel background beamerarticle bidi bookmark booktabs caption csquotes etoolbox fancyhdr fancyvrb float fontenc footmisc footnote footnotebackref footnotehyper fvextra geometry graphicx grffile hyperref ifluatex ifxetex inputenc listings lmodern longtable luatexja-fontspec luatexja-preset mathspec mdframed microtype natbib pagecolor parskip pgfpages polyglossia setspace sourcecodepro sourcesanspro textcomp tikz titling ulem unicode-math upquote url xcolor xeCJK xurl - - - sudo chown -hR $(whoami) "$TEXLIVE_DIR" - # packages specified in the template - - tlmgr install adjustbox background bidi csquotes footmisc footnotebackref fvextra mdframed pagecolor sourcecodepro sourcesanspro titling ulem upquote xurl hardwrap catchfile - - # trial and error - - tlmgr install letltxmacro zref everypage framed collectbox - - # packages needed for the template - - tlmgr install xecjk filehook unicode-math ucharcat pagecolor babel-german ly1 mweights sourcecodepro sourcesanspro mdframed needspace fvextra footmisc footnotebackref background - - # packages only needed for some examples (that include packages via header-includes) - - tlmgr install awesomebox fontawesome5 - - # packages only needed for some examples (example boxes-with-pandoc-latex-environment-and-tcolorbox) - - tlmgr install tcolorbox pgf etoolbox environ trimspaces -before_script: - - cd examples -script: - - bash build-examples.sh \ No newline at end of file diff --git a/README.md b/README.md index 577706d..00a47f3 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,6 @@ # Eisvogel -[![Build Status](https://travis-ci.com/Wandmalfarbe/pandoc-latex-template.svg?branch=master)](https://travis-ci.com/Wandmalfarbe/pandoc-latex-template) - A clean **pandoc LaTeX template** to convert your markdown files to PDF or LaTeX. It is designed for lecture notes and exercises with a focus on computer science. The template is compatible with pandoc 3. ## Preview diff --git a/docs/index.md b/docs/index.md index 23c4ed6..46b8f8f 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,8 +2,6 @@ # Eisvogel -[![Build Status](https://travis-ci.com/Wandmalfarbe/pandoc-latex-template.svg?branch=master)](https://travis-ci.com/Wandmalfarbe/pandoc-latex-template) - A clean **pandoc LaTeX template** to convert your markdown files to PDF or LaTeX. It is designed for lecture notes and exercises with a focus on computer science. The template is compatible with pandoc 2. ## Preview diff --git a/examples/build-examples.sh b/examples/build-examples.sh index 7815dce..a1a399c 100644 --- a/examples/build-examples.sh +++ b/examples/build-examples.sh @@ -13,7 +13,7 @@ containsElement () { return 1 } -# these examples are skipped because they don't run on travis (for now) +# these examples are skipped because they don't run in CI builds (for now) skippedExamples=("language-chinese" "language-japanese") # loop all files in the current folder diff --git a/tests/build-tests.sh b/tests/build-tests.sh index 686e4a6..76fdfec 100644 --- a/tests/build-tests.sh +++ b/tests/build-tests.sh @@ -13,7 +13,7 @@ containsElement () { return 1 } -# these examples are skipped because they don't run on travis (for now) +# these examples are skipped because they don't run in CI builds (for now) skippedExamples=() # loop all files in the current folder @@ -35,4 +35,4 @@ for f in *; do cd ".." fi fi -done \ No newline at end of file +done