ci: run gem with sudo to install asciidoctor

In a later patch, we will run Documentation job in GitHub Actions.
The job will run without elevated permission.

Run `gem` with `sudo` to elevate permission in order to be able to
install to system location.
This will also keep this installation in-line with other installation in
our Linux system for CI.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
[Danh: reword commit message]
Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
This commit is contained in:
Johannes Schindelin
2020-04-07 09:31:30 +07:00
committed by Đoàn Trần Công Danh
parent e81d6f7607
commit 7bc64fa7d2

View File

@@ -72,7 +72,7 @@ Documentation)
libcurl4-openssl-dev
test -n "$ALREADY_HAVE_ASCIIDOCTOR" ||
gem install --version 1.5.8 asciidoctor
sudo gem install --version 1.5.8 asciidoctor
;;
GETTEXT_POISON)
sudo apt-get -q update