Skip to content

Commit 5dc3c3a

Browse files
committed
CDRIVER-2014 check for doc files in release tarball
1 parent 6e24289 commit 5dc3c3a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.evergreen/config.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,29 @@ tasks:
378378
sphinx-build --version
379379
380380
./autogen.sh --enable-html-docs --enable-man-pages && make distcheck
381+
382+
# Check that docs were included, but sphinx temp files weren't.
383+
set -o xtrace
384+
set -o errexit
385+
tarfile=mongo-c-driver-*.tar.gz
386+
docs='mongo-c-driver-*/doc/html/index.html mongo-c-driver-*/doc/man/mongoc_client_t.3'
387+
tmpfiles='mongo-c-driver-*/doc/html/.doctrees \
388+
mongo-c-driver-*/doc/html/.buildinfo \
389+
mongo-c-driver-*/doc/man/.doctrees \
390+
mongo-c-driver-*/doc/man/.buildinfo'
391+
392+
for doc in $docs; do
393+
# Check this doc is in the archive.
394+
tar --wildcards -tzf $tarfile $doc
395+
done
396+
397+
for tmpfile in $tmpfiles; do
398+
# Check this temp file doesn't exist.
399+
if tar --wildcards -tzf $tarfile $tmpfile > /dev/null 2>&1; then
400+
echo "Found temp file in archive: $tmpfile"
401+
exit 1
402+
fi
403+
done
381404
- func: "upload docs"
382405
- func: "upload release"
383406
- func: "upload build"

0 commit comments

Comments
 (0)