diff options
author | Ben Gamari <ben@smart-cactus.org> | 2019-04-20 11:17:10 -0400 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2019-04-20 11:55:20 -0400 |
commit | 37b1a6da9244d2714c9ff4f9b6174a1ed715acb8 (patch) | |
tree | b606c76822713665f19cf1d95f9ba197373c54d9 | |
parent | 10776562d8b9c92f6dee0fec6294c07944b19442 (diff) | |
download | haskell-37b1a6da9244d2714c9ff4f9b6174a1ed715acb8.tar.gz |
gitlab-ci: Improve error message on failure of doc-tarball job
Previously the failure was quite nondescript.
-rw-r--r-- | .gitlab-ci.yml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9a1ca2ea29..197591d169 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -688,6 +688,9 @@ doc-tarball: dependencies: - validate-x86_64-linux-deb9 - validate-x86_64-windows + variables: + LINUX_BINDIST: "ghc-x86_64-deb9-linux.tar.xz" + WINDOWS_BINDIST: "ghc-x86_64-mingw32.tar.xz" artifacts: paths: - haddock.html.tar.xz @@ -696,8 +699,17 @@ doc-tarball: - index.html - "*.pdf" script: + - | + if [ ! -f "$LINUX_BINDIST" ]; then + echo "Error: $LINUX_BINDIST does not exist. Did the Debian 9 job fail?" + exit 1 + fi + if [ ! -f "$WINDOWS_BINDIST" ]; then + echo "Error: $WINDOWS_BINDIST does not exist. Did the 64-bit Windows job fail?" + exit 1 + fi - rm -Rf docs - - bash -ex distrib/mkDocs/mkDocs ghc-x86_64-deb9-linux.tar.xz ghc-x86_64-mingw32.tar.xz + - bash -ex distrib/mkDocs/mkDocs $LINUX_BINDIST $WINDOWS_BINDIST - ls -lh - mv docs/*.tar.xz docs/index.html . |