Canonical way to use MikTeX via appveyor











up vote
1
down vote

favorite












I'm trying to use continuous integration with appveyor but I'm unable to run pdflatex. I considered myself reasonably competent with MikTeX up until now, though perhaps this is more a powershell problem.



I was able to install and run TeX Live through appveyor but I'd like to test MikTeX.



Attempt 1: docker



I attempted to use MikTeX's docker image (https://miktex.org/howto/miktex-docker) but it appears to be only usable for GNU/Linux:



build_script:
- docker pull miktex/miktex
- docker volume create --name miktex
- docker run -ti
-v miktex:/miktex/.miktex
-v `pwd`:/miktex/work
miktex/miktex
pdflatex Report.tex


Results in:



>    docker pull miktex/miktex
> Using default tag: latest
> latest: Pulling from miktex/miktex
> image operating system "linux" cannot be used on this platform
> Command exited with code 1
> 7z a failure.zip *.Rcheck*


Attempt 2: via chocolatey



init:
ps:
choco install miktex.portable
refreshenv

script:
- pdflatex Report.tex


Result:




'pdflatex' is not recognized as an internal or external command,
operable program or batch file




You can assume that Report.tex compiles.










share|improve this question














bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • I myself have only used Travis CI, but there seem a few repositories to install MiKTeX on AppVeyor (e.g., github.com/thomasjo/appveyor-miktex)
    – yudai-nkt
    Jan 24 at 12:52















up vote
1
down vote

favorite












I'm trying to use continuous integration with appveyor but I'm unable to run pdflatex. I considered myself reasonably competent with MikTeX up until now, though perhaps this is more a powershell problem.



I was able to install and run TeX Live through appveyor but I'd like to test MikTeX.



Attempt 1: docker



I attempted to use MikTeX's docker image (https://miktex.org/howto/miktex-docker) but it appears to be only usable for GNU/Linux:



build_script:
- docker pull miktex/miktex
- docker volume create --name miktex
- docker run -ti
-v miktex:/miktex/.miktex
-v `pwd`:/miktex/work
miktex/miktex
pdflatex Report.tex


Results in:



>    docker pull miktex/miktex
> Using default tag: latest
> latest: Pulling from miktex/miktex
> image operating system "linux" cannot be used on this platform
> Command exited with code 1
> 7z a failure.zip *.Rcheck*


Attempt 2: via chocolatey



init:
ps:
choco install miktex.portable
refreshenv

script:
- pdflatex Report.tex


Result:




'pdflatex' is not recognized as an internal or external command,
operable program or batch file




You can assume that Report.tex compiles.










share|improve this question














bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • I myself have only used Travis CI, but there seem a few repositories to install MiKTeX on AppVeyor (e.g., github.com/thomasjo/appveyor-miktex)
    – yudai-nkt
    Jan 24 at 12:52













up vote
1
down vote

favorite









up vote
1
down vote

favorite











I'm trying to use continuous integration with appveyor but I'm unable to run pdflatex. I considered myself reasonably competent with MikTeX up until now, though perhaps this is more a powershell problem.



I was able to install and run TeX Live through appveyor but I'd like to test MikTeX.



Attempt 1: docker



I attempted to use MikTeX's docker image (https://miktex.org/howto/miktex-docker) but it appears to be only usable for GNU/Linux:



build_script:
- docker pull miktex/miktex
- docker volume create --name miktex
- docker run -ti
-v miktex:/miktex/.miktex
-v `pwd`:/miktex/work
miktex/miktex
pdflatex Report.tex


Results in:



>    docker pull miktex/miktex
> Using default tag: latest
> latest: Pulling from miktex/miktex
> image operating system "linux" cannot be used on this platform
> Command exited with code 1
> 7z a failure.zip *.Rcheck*


Attempt 2: via chocolatey



init:
ps:
choco install miktex.portable
refreshenv

script:
- pdflatex Report.tex


Result:




'pdflatex' is not recognized as an internal or external command,
operable program or batch file




You can assume that Report.tex compiles.










share|improve this question













I'm trying to use continuous integration with appveyor but I'm unable to run pdflatex. I considered myself reasonably competent with MikTeX up until now, though perhaps this is more a powershell problem.



I was able to install and run TeX Live through appveyor but I'd like to test MikTeX.



Attempt 1: docker



I attempted to use MikTeX's docker image (https://miktex.org/howto/miktex-docker) but it appears to be only usable for GNU/Linux:



build_script:
- docker pull miktex/miktex
- docker volume create --name miktex
- docker run -ti
-v miktex:/miktex/.miktex
-v `pwd`:/miktex/work
miktex/miktex
pdflatex Report.tex


Results in:



>    docker pull miktex/miktex
> Using default tag: latest
> latest: Pulling from miktex/miktex
> image operating system "linux" cannot be used on this platform
> Command exited with code 1
> 7z a failure.zip *.Rcheck*


Attempt 2: via chocolatey



init:
ps:
choco install miktex.portable
refreshenv

script:
- pdflatex Report.tex


Result:




'pdflatex' is not recognized as an internal or external command,
operable program or batch file




You can assume that Report.tex compiles.







miktex windows






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 24 at 12:21









Hugh

1,229820




1,229820





bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community yesterday


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • I myself have only used Travis CI, but there seem a few repositories to install MiKTeX on AppVeyor (e.g., github.com/thomasjo/appveyor-miktex)
    – yudai-nkt
    Jan 24 at 12:52


















  • I myself have only used Travis CI, but there seem a few repositories to install MiKTeX on AppVeyor (e.g., github.com/thomasjo/appveyor-miktex)
    – yudai-nkt
    Jan 24 at 12:52
















I myself have only used Travis CI, but there seem a few repositories to install MiKTeX on AppVeyor (e.g., github.com/thomasjo/appveyor-miktex)
– yudai-nkt
Jan 24 at 12:52




I myself have only used Travis CI, but there seem a few repositories to install MiKTeX on AppVeyor (e.g., github.com/thomasjo/appveyor-miktex)
– yudai-nkt
Jan 24 at 12:52










1 Answer
1






active

oldest

votes

















up vote
0
down vote













I'm not sure what you mean by 'canonical'. But this should work:



version: 1.0.{build}
image: Visual Studio 2017
install:
- ps: choco install -y miktex
- cmd: refreshenv

build_script:
- cmd: pdflatex .Report.tex





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%2f411864%2fcanonical-way-to-use-miktex-via-appveyor%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    I'm not sure what you mean by 'canonical'. But this should work:



    version: 1.0.{build}
    image: Visual Studio 2017
    install:
    - ps: choco install -y miktex
    - cmd: refreshenv

    build_script:
    - cmd: pdflatex .Report.tex





    share|improve this answer

























      up vote
      0
      down vote













      I'm not sure what you mean by 'canonical'. But this should work:



      version: 1.0.{build}
      image: Visual Studio 2017
      install:
      - ps: choco install -y miktex
      - cmd: refreshenv

      build_script:
      - cmd: pdflatex .Report.tex





      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        I'm not sure what you mean by 'canonical'. But this should work:



        version: 1.0.{build}
        image: Visual Studio 2017
        install:
        - ps: choco install -y miktex
        - cmd: refreshenv

        build_script:
        - cmd: pdflatex .Report.tex





        share|improve this answer












        I'm not sure what you mean by 'canonical'. But this should work:



        version: 1.0.{build}
        image: Visual Studio 2017
        install:
        - ps: choco install -y miktex
        - cmd: refreshenv

        build_script:
        - cmd: pdflatex .Report.tex






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 26 at 12:22









        Raphael Haddad

        1




        1






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f411864%2fcanonical-way-to-use-miktex-via-appveyor%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            サソリ

            広島県道265号伴広島線

            Accessing regular linux commands in Huawei's Dopra Linux