ci: install Asciidoctor in 'ci/install-dependencies.sh'
authorSZEDER Gábor <szeder.dev@gmail.com>
Fri, 29 Mar 2019 12:35:18 +0000 (13:35 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Apr 2019 06:17:47 +0000 (15:17 +0900)
When our '.travis.yml' was split into several 'ci/*' scripts [1], the
installation of the 'asciidoctor' gem somehow ended up in
'ci/test-documentation.sh'.

Install it in 'ci/install-dependencies.sh', where we install other
dependencies of the Documentation build job as well (asciidoc,
xmlto).

[1] 657343a602 (travis-ci: move Travis CI code into dedicated scripts,
2017-09-10)

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/install-dependencies.sh
ci/test-documentation.sh
index d64667fcbfef80e4603d97f7825399dea5be0b6b..76ec308965dfaffbadcee47482c466863374ad2d 100755 (executable)
@@ -54,6 +54,9 @@ StaticAnalysis)
 Documentation)
        sudo apt-get -q update
        sudo apt-get -q -y install asciidoc xmlto
+
+       test -n "$ALREADY_HAVE_ASCIIDOCTOR" ||
+       gem install asciidoctor
        ;;
 esac
 
index be3b7d376ac47391be71a3822a320e327f7a3a2d..8f91f48c8120633c6eede991d867aab34cc0bb29 100755 (executable)
@@ -5,9 +5,6 @@
 
 . ${0%/*}/lib.sh
 
-test -n "$ALREADY_HAVE_ASCIIDOCTOR" ||
-gem install asciidoctor
-
 make check-builtins
 make check-docs