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.
miktex windows
add a comment |
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.
miktex windows
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
add a comment |
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.
miktex windows
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
miktex windows
asked Jan 24 at 12:21
Hugh
1,229820
1,229820
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
add a comment |
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
add a comment |
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
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Feb 26 at 12:22
Raphael Haddad
1
1
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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