File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -378,6 +378,29 @@ tasks:
378
378
sphinx-build --version
379
379
380
380
./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
381
404
- func : " upload docs"
382
405
- func : " upload release"
383
406
- func : " upload build"
You can’t perform that action at this time.
0 commit comments