Installing pygments and configuring minted for continuous builds on travis-CI











up vote
1
down vote

favorite












I have set up a continuous integration system using github and travis CI using this workflow that was given as an answer to a similar question here. Everything works fine and I am able to build the PDF upon each git push.



Now, there is an issue in using the minted package for code listings. which has an external dependency on the pygments library.



How do I modify the .travis.yml (specifically the one from that reference link) to install pygments on the travis build environment and configure it (i.e. make TeX find it) for building the project?










share|improve this question




























    up vote
    1
    down vote

    favorite












    I have set up a continuous integration system using github and travis CI using this workflow that was given as an answer to a similar question here. Everything works fine and I am able to build the PDF upon each git push.



    Now, there is an issue in using the minted package for code listings. which has an external dependency on the pygments library.



    How do I modify the .travis.yml (specifically the one from that reference link) to install pygments on the travis build environment and configure it (i.e. make TeX find it) for building the project?










    share|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I have set up a continuous integration system using github and travis CI using this workflow that was given as an answer to a similar question here. Everything works fine and I am able to build the PDF upon each git push.



      Now, there is an issue in using the minted package for code listings. which has an external dependency on the pygments library.



      How do I modify the .travis.yml (specifically the one from that reference link) to install pygments on the travis build environment and configure it (i.e. make TeX find it) for building the project?










      share|improve this question















      I have set up a continuous integration system using github and travis CI using this workflow that was given as an answer to a similar question here. Everything works fine and I am able to build the PDF upon each git push.



      Now, there is an issue in using the minted package for code listings. which has an external dependency on the pygments library.



      How do I modify the .travis.yml (specifically the one from that reference link) to install pygments on the travis build environment and configure it (i.e. make TeX find it) for building the project?







      minted build-system travis continuous-integration






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 2 days ago









      PHPirate

      687421




      687421










      asked May 15 at 20:08









      Krishna

      923518




      923518






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          This is not about Travis in particular, but there is another docker image (vanilla TL2018 on Debian) out there that works with minted and Pygments: sumdoc/texlive-2018 (see https://hub.docker.com/r/sumdoc/texlive-2018/). Simply use this as a replacement for your previous docker image and you will be able to run a normal LaTeX call with shell escape to build your document.






          share|improve this answer




























            up vote
            1
            down vote













            Here is the Travis-specific answer: you can install such dependencies by adding this to your .travis.yml before the install block:



            # Dependency of the minted package
            before_install:
            - sudo apt-get install python-pygments





            share|improve this answer





















              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "85"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














               

              draft saved


              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f431754%2finstalling-pygments-and-configuring-minted-for-continuous-builds-on-travis-ci%23new-answer', 'question_page');
              }
              );

              Post as a guest
































              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              1
              down vote



              accepted










              This is not about Travis in particular, but there is another docker image (vanilla TL2018 on Debian) out there that works with minted and Pygments: sumdoc/texlive-2018 (see https://hub.docker.com/r/sumdoc/texlive-2018/). Simply use this as a replacement for your previous docker image and you will be able to run a normal LaTeX call with shell escape to build your document.






              share|improve this answer

























                up vote
                1
                down vote



                accepted










                This is not about Travis in particular, but there is another docker image (vanilla TL2018 on Debian) out there that works with minted and Pygments: sumdoc/texlive-2018 (see https://hub.docker.com/r/sumdoc/texlive-2018/). Simply use this as a replacement for your previous docker image and you will be able to run a normal LaTeX call with shell escape to build your document.






                share|improve this answer























                  up vote
                  1
                  down vote



                  accepted







                  up vote
                  1
                  down vote



                  accepted






                  This is not about Travis in particular, but there is another docker image (vanilla TL2018 on Debian) out there that works with minted and Pygments: sumdoc/texlive-2018 (see https://hub.docker.com/r/sumdoc/texlive-2018/). Simply use this as a replacement for your previous docker image and you will be able to run a normal LaTeX call with shell escape to build your document.






                  share|improve this answer












                  This is not about Travis in particular, but there is another docker image (vanilla TL2018 on Debian) out there that works with minted and Pygments: sumdoc/texlive-2018 (see https://hub.docker.com/r/sumdoc/texlive-2018/). Simply use this as a replacement for your previous docker image and you will be able to run a normal LaTeX call with shell escape to build your document.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Aug 19 at 16:47









                  TeXnician

                  23.2k62984




                  23.2k62984






















                      up vote
                      1
                      down vote













                      Here is the Travis-specific answer: you can install such dependencies by adding this to your .travis.yml before the install block:



                      # Dependency of the minted package
                      before_install:
                      - sudo apt-get install python-pygments





                      share|improve this answer

























                        up vote
                        1
                        down vote













                        Here is the Travis-specific answer: you can install such dependencies by adding this to your .travis.yml before the install block:



                        # Dependency of the minted package
                        before_install:
                        - sudo apt-get install python-pygments





                        share|improve this answer























                          up vote
                          1
                          down vote










                          up vote
                          1
                          down vote









                          Here is the Travis-specific answer: you can install such dependencies by adding this to your .travis.yml before the install block:



                          # Dependency of the minted package
                          before_install:
                          - sudo apt-get install python-pygments





                          share|improve this answer












                          Here is the Travis-specific answer: you can install such dependencies by adding this to your .travis.yml before the install block:



                          # Dependency of the minted package
                          before_install:
                          - sudo apt-get install python-pygments






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered 2 days ago









                          PHPirate

                          687421




                          687421






























                               

                              draft saved


                              draft discarded



















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f431754%2finstalling-pygments-and-configuring-minted-for-continuous-builds-on-travis-ci%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest




















































































                              Popular posts from this blog

                              How to change which sound is reproduced for terminal bell?

                              Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

                              Can I use Tabulator js library in my java Spring + Thymeleaf project?