mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
CI: Start to get the build details into the build
This commit is contained in:
parent
97f7f8f111
commit
8f54231d62
@ -13,7 +13,7 @@ jobs:
|
|||||||
- stage: build
|
- stage: build
|
||||||
script:
|
script:
|
||||||
- npm --force install tiddlywiki
|
- npm --force install tiddlywiki
|
||||||
- export GIT_DETAILS="$TRAVIS_BRANCH-$(git rev-parse HEAD) from $(git remote get-url origin)"
|
- export TW5_BUILD_DETAILS="$TRAVIS_BRANCH-$(git rev-parse HEAD) from $(git remote get-url origin)"
|
||||||
- export TW5_BUILD_TIDDLYWIKI='./node_modules/tiddlywiki/tiddlywiki.js'
|
- export TW5_BUILD_TIDDLYWIKI='./node_modules/tiddlywiki/tiddlywiki.js'
|
||||||
- ./bin/build-site.sh
|
- ./bin/build-site.sh
|
||||||
- ./bin/deploy-site.sh
|
- ./bin/deploy-site.sh
|
||||||
|
@ -20,6 +20,12 @@ if [ -z "$TW5_BUILD_TIDDLYWIKI" ]; then
|
|||||||
TW5_BUILD_TIDDLYWIKI=./tiddlywiki.js
|
TW5_BUILD_TIDDLYWIKI=./tiddlywiki.js
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set up the build details
|
||||||
|
|
||||||
|
if [ -z "$TW5_BUILD_DETAILS" ]; then
|
||||||
|
TW5_BUILD_DETAILS="$(git symbolic-ref --short HEAD)-$(git rev-parse HEAD) from $(git remote get-url origin)"
|
||||||
|
fi
|
||||||
|
|
||||||
# Set up the build output directory
|
# Set up the build output directory
|
||||||
|
|
||||||
if [ -z "$TW5_BUILD_OUTPUT" ]; then
|
if [ -z "$TW5_BUILD_OUTPUT" ]; then
|
||||||
@ -35,7 +41,7 @@ fi
|
|||||||
|
|
||||||
echo "Using TW5_BUILD_OUTPUT as [$TW5_BUILD_OUTPUT]"
|
echo "Using TW5_BUILD_OUTPUT as [$TW5_BUILD_OUTPUT]"
|
||||||
|
|
||||||
echo "Git details: $GIT_DETAILS"
|
echo "Build details: $TW5_BUILD_DETAILS"
|
||||||
|
|
||||||
# Make the CNAME file that GitHub Pages requires
|
# Make the CNAME file that GitHub Pages requires
|
||||||
|
|
||||||
@ -58,6 +64,10 @@ echo "<a href='./plugins/tiddlywiki/highlight/index.html'>Moved to http://tiddly
|
|||||||
echo "<a href='./plugins/tiddlywiki/markdown/index.html'>Moved to http://tiddlywiki.com/plugins/tiddlywiki/markdown/index.html</a>" > $TW5_BUILD_OUTPUT/markdowndemo.html
|
echo "<a href='./plugins/tiddlywiki/markdown/index.html'>Moved to http://tiddlywiki.com/plugins/tiddlywiki/markdown/index.html</a>" > $TW5_BUILD_OUTPUT/markdowndemo.html
|
||||||
echo "<a href='./plugins/tiddlywiki/tahoelafs/index.html'>Moved to http://tiddlywiki.com/plugins/tiddlywiki/tahoelafs/index.html</a>" > $TW5_BUILD_OUTPUT/tahoelafs.html
|
echo "<a href='./plugins/tiddlywiki/tahoelafs/index.html'>Moved to http://tiddlywiki.com/plugins/tiddlywiki/tahoelafs/index.html</a>" > $TW5_BUILD_OUTPUT/tahoelafs.html
|
||||||
|
|
||||||
|
# Put the build details into a .tid file so that it can be included in each build
|
||||||
|
|
||||||
|
echo "title: $:/build\ntext: $TW5_BUILD_DETAILS\n" > $TW5_BUILD_OUTPUT/build.tid
|
||||||
|
|
||||||
######################################################
|
######################################################
|
||||||
#
|
#
|
||||||
# Core distribution
|
# Core distribution
|
||||||
@ -75,10 +85,13 @@ node $TW5_BUILD_TIDDLYWIKI \
|
|||||||
$TW5_BUILD_MAIN_EDITION \
|
$TW5_BUILD_MAIN_EDITION \
|
||||||
--verbose \
|
--verbose \
|
||||||
--version \
|
--version \
|
||||||
|
--load $TW5_BUILD_OUTPUT/build.tid \
|
||||||
--output $TW5_BUILD_OUTPUT \
|
--output $TW5_BUILD_OUTPUT \
|
||||||
--build favicon static index \
|
--build favicon static index \
|
||||||
|| exit 1
|
|| exit 1
|
||||||
|
|
||||||
|
more $TW5_BUILD_OUTPUT/build.tid
|
||||||
|
|
||||||
# # /empty.html Empty
|
# # /empty.html Empty
|
||||||
# # /empty.hta For Internet Explorer
|
# # /empty.hta For Internet Explorer
|
||||||
# node $TW5_BUILD_TIDDLYWIKI \
|
# node $TW5_BUILD_TIDDLYWIKI \
|
||||||
|
Loading…
Reference in New Issue
Block a user