From 871a9e65009990963c12359531ea2beeacb7386d Mon Sep 17 00:00:00 2001 From: Gaƫtan Gilbert Date: Mon, 14 May 2018 18:29:02 +0200 Subject: gitlab: build sphinx doc in separate job --- doc/tools/coqrst/repl/coqtop.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc/tools') diff --git a/doc/tools/coqrst/repl/coqtop.py b/doc/tools/coqrst/repl/coqtop.py index aeadce4c4..3ff00eaaf 100644 --- a/doc/tools/coqrst/repl/coqtop.py +++ b/doc/tools/coqrst/repl/coqtop.py @@ -41,10 +41,13 @@ class CoqTop: the ansicolors module) :param args: Additional arugments to coqtop. """ + BOOT = True + if os.getenv('COQBOOT') == "no": + BOOT = False self.coqtop_bin = coqtop_bin or os.path.join(os.getenv('COQBIN', ""), "coqtop") if not pexpect.utils.which(self.coqtop_bin): raise ValueError("coqtop binary not found: '{}'".format(self.coqtop_bin)) - self.args = (args or []) + ["-boot", "-color", "on"] * color + self.args = (args or []) + ["-boot"] * BOOT + ["-color", "on"] * color self.coqtop = None def __enter__(self): -- cgit v1.2.3