@@ -378,29 +378,45 @@ tasks:
378
378
sphinx-build --version
379
379
380
380
./autogen.sh --enable-html-docs --enable-man-pages && make distcheck
381
-
381
+
382
382
# Check that docs were included, but sphinx temp files weren't.
383
- set -o xtrace
384
- set -o errexit
385
383
tarfile=mongo-c-driver-*.tar.gz
386
- docs='mongo-c-driver-*/doc/html/index.html mongo-c-driver-*/doc/man/mongoc_client_t .3'
384
+ docs='mongo-c-driver-*/doc/html/index.html mongo-c-driver-*/doc/man/bson_t .3'
387
385
tmpfiles='mongo-c-driver-*/doc/html/.doctrees \
388
386
mongo-c-driver-*/doc/html/.buildinfo \
389
387
mongo-c-driver-*/doc/man/.doctrees \
390
388
mongo-c-driver-*/doc/man/.buildinfo'
391
389
390
+ echo "Checking for built docs"
392
391
for doc in $docs; do
393
392
# Check this doc is in the archive.
394
393
tar --wildcards -tzf $tarfile $doc
395
394
done
396
395
396
+ echo "Checking that temp files are not included in tarball"
397
397
for tmpfile in $tmpfiles; do
398
398
# Check this temp file doesn't exist.
399
399
if tar --wildcards -tzf $tarfile $tmpfile > /dev/null 2>&1; then
400
400
echo "Found temp file in archive: $tmpfile"
401
401
exit 1
402
402
fi
403
403
done
404
+
405
+ echo "Checking that all C files are included in tarball"
406
+ # Check that all C files were included.
407
+ TAR_CFILES=`tar --wildcards -tf mongo-c-driver-*.tar.gz 'mongo-c-driver-*/src/mongoc/*.c' | cut -d / -f 4 | sort`
408
+ SRC_CFILES=`echo src/mongoc/*.c | xargs -n 1 | cut -d / -f 3 | sort`
409
+ if [ "$TAR_CFILES" != "$SRC_CFILES" ]; then
410
+ echo "Not all C files are in the release archive"
411
+ echo $TAR_CFILES > tar_cfiles.txt
412
+ echo $SRC_CFILES | diff -y - tar_cfiles.txt
413
+ fi
414
+
415
+ end=$(date +%s)
416
+ echo '"end": ' $end ', ' >> test-results.json
417
+ sum=$(expr $end - $start)
418
+ echo '"elapsed": ' $sum ' } ] }' >> test-results.json
419
+
404
420
- func : " upload docs"
405
421
- func : " upload release"
406
422
- func : " upload build"
0 commit comments