aboutsummaryrefslogtreecommitdiffstats
path: root/dist
diff options
context:
space:
mode:
author1138-4EB <1138-4EB@users.noreply.github.com>2019-01-06 16:56:41 +0100
committertgingold <tgingold@users.noreply.github.com>2019-01-06 16:56:41 +0100
commit7021fba68ae037edb0899e137785cbe3f5d9ac35 (patch)
treef6b1855db03594dddffbc52962b151fd3084d0d6 /dist
parent612a472d6c9f01d7b361f7baec15fb52f24654ef (diff)
downloadghdl-7021fba68ae037edb0899e137785cbe3f5d9ac35.tar.gz
ghdl-7021fba68ae037edb0899e137785cbe3f5d9ac35.tar.bz2
ghdl-7021fba68ae037edb0899e137785cbe3f5d9ac35.zip
Add man pages job to travis (#733)
* add man pages job to travis
Diffstat (limited to 'dist')
-rwxr-xr-xdist/travis/man.sh13
-rwxr-xr-xdist/travis/travis-ci.sh2
2 files changed, 14 insertions, 1 deletions
diff --git a/dist/travis/man.sh b/dist/travis/man.sh
new file mode 100755
index 000000000..ab00cb4c9
--- /dev/null
+++ b/dist/travis/man.sh
@@ -0,0 +1,13 @@
+#! /bin/bash
+
+rm -rf doc/_build/man/*
+
+set -e
+
+docker run --rm -it \
+ -v /$(pwd):/src \
+ -w //src/doc \
+ btdi/sphinx:py2-featured \
+ sh -c "sphinx-build -T -b man . ./_build/man"
+
+nroff -man doc/_build/man/ghdl.1
diff --git a/dist/travis/travis-ci.sh b/dist/travis/travis-ci.sh
index 628acceaf..0dda09931 100755
--- a/dist/travis/travis-ci.sh
+++ b/dist/travis/travis-ci.sh
@@ -29,6 +29,7 @@ scriptdir=$(dirname $0)
. "$scriptdir/../ansi_color.sh"
#disable_color
+
# Display env (to debug)
echo -en "travis_fold:start:travis_env\r"
@@ -47,7 +48,6 @@ echo "travis_fold:start:fetch"
# The command 'git describe' (used for version) needs the history. Get it.
# But the following command fails if the repository is complete.
git fetch --unshallow || true
-
echo "travis_fold:end:fetch"