travis: Get tags so git-describe works.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
parent
ae260de68f
commit
cdcf2c061c
|
|
@ -9,6 +9,7 @@ env:
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- ./.travis/save-key.sh
|
- ./.travis/save-key.sh
|
||||||
|
- ./.travis/fix-git.sh
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./.travis/generate-html.sh
|
- ./.travis/generate-html.sh
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
git fetch --unshallow
|
||||||
|
git fetch --tags
|
||||||
|
|
@ -8,14 +8,11 @@ SRCDIR=$PWD
|
||||||
TMPDIR=$(mktemp -d)
|
TMPDIR=$(mktemp -d)
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Project X-Ray Database Revision"
|
echo "Project X-Ray Database Revision $(git describe --long --tags --always)"
|
||||||
echo "--------------------------------------------"
|
|
||||||
git describe
|
|
||||||
echo "--------------------------------------------"
|
echo "--------------------------------------------"
|
||||||
git log -1
|
git log -1
|
||||||
echo "--------------------------------------------"
|
echo "--------------------------------------------"
|
||||||
find -type f | sort
|
echo
|
||||||
echo "--------------------------------------------"
|
|
||||||
|
|
||||||
# Remove any pre-existing html output.
|
# Remove any pre-existing html output.
|
||||||
for d in html/*; do
|
for d in html/*; do
|
||||||
|
|
@ -34,15 +31,15 @@ fi
|
||||||
|
|
||||||
(
|
(
|
||||||
cd $TMPDIR/prjxray
|
cd $TMPDIR/prjxray
|
||||||
|
git fetch --tags
|
||||||
echo
|
echo
|
||||||
echo "Project X-Ray Revision"
|
echo "Project X-Ray Revision $(git describe --long --tags --always)"
|
||||||
echo "--------------------------------------------"
|
|
||||||
git describe
|
|
||||||
echo "--------------------------------------------"
|
echo "--------------------------------------------"
|
||||||
git log -1
|
git log -1
|
||||||
echo "--------------------------------------------"
|
echo "--------------------------------------------"
|
||||||
sha256sum htmlgen/htmlgen.py
|
sha256sum htmlgen/htmlgen.py
|
||||||
echo "--------------------------------------------"
|
echo "--------------------------------------------"
|
||||||
|
echo
|
||||||
)
|
)
|
||||||
|
|
||||||
for SETTINGS in $(find -name settings.sh); do
|
for SETTINGS in $(find -name settings.sh); do
|
||||||
|
|
@ -56,6 +53,7 @@ for SETTINGS in $(find -name settings.sh); do
|
||||||
echo "--------------------------------------------"
|
echo "--------------------------------------------"
|
||||||
python3 $TMPDIR/prjxray/htmlgen/htmlgen.py --settings=$SETTINGS
|
python3 $TMPDIR/prjxray/htmlgen/htmlgen.py --settings=$SETTINGS
|
||||||
echo "--------------------------------------------"
|
echo "--------------------------------------------"
|
||||||
|
echo
|
||||||
done
|
done
|
||||||
|
|
||||||
(
|
(
|
||||||
|
|
@ -65,4 +63,5 @@ done
|
||||||
cd html
|
cd html
|
||||||
sha256sum $(find -type f html | sort)
|
sha256sum $(find -type f html | sort)
|
||||||
echo "--------------------------------------------"
|
echo "--------------------------------------------"
|
||||||
|
echo
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue