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
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.
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
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
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
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
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 |
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