Skip to content

Commit 916a338

Browse files
committed
Merge branch 'ls/travis-doc-asciidoctor' into maint
Travis CI gained a task to format the documentation with both AsciiDoc and AsciiDoctor. * ls/travis-doc-asciidoctor: travis-ci: check AsciiDoc/AsciiDoctor stderr output travis-ci: unset compiler for jobs that do not need one travis-ci: parallelize documentation build travis-ci: build documentation with AsciiDoc and Asciidoctor
2 parents e215bd9 + 505ad91 commit 916a338

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ matrix:
5757
after_failure:
5858
- env: Linux32
5959
os: linux
60+
compiler:
6061
services:
6162
- docker
6263
before_install:
@@ -91,14 +92,14 @@ matrix:
9192
after_failure:
9293
- env: Documentation
9394
os: linux
94-
compiler: clang
95+
compiler:
9596
addons:
9697
apt:
9798
packages:
9899
- asciidoc
99100
- xmlto
100101
before_install:
101-
before_script:
102+
before_script: gem install asciidoctor
102103
script: ci/test-documentation.sh
103104
after_failure:
104105

ci/test-documentation.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env bash
22
#
33
# Perform sanity checks on documentation and build it.
44
#
@@ -7,8 +7,19 @@ set -e
77

88
make check-builtins
99
make check-docs
10-
make doc
1110

11+
# Build docs with AsciiDoc
12+
make --jobs=2 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
13+
! test -s stderr.log
1214
test -s Documentation/git.html
1315
test -s Documentation/git.xml
1416
test -s Documentation/git.1
17+
grep '<meta name="generator" content="AsciiDoc ' Documentation/git.html
18+
19+
# Build docs with AsciiDoctor
20+
make clean
21+
make --jobs=2 USE_ASCIIDOCTOR=1 doc > >(tee stdout.log) 2> >(tee stderr.log >&2)
22+
sed '/^GIT_VERSION = / d' stderr.log
23+
! test -s stderr.log
24+
test -s Documentation/git.html
25+
grep '<meta name="generator" content="Asciidoctor ' Documentation/git.html

0 commit comments

Comments
 (0)