1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-30 13:29:56 +00:00
TiddlyWiki5/bin/test.sh
Jermolene d58bc33df4 CI: Investigate conditional stages
For "master" we need to rebuild the prerelease; for "tiddlywiki-com" we need to rebuild the main release using the latest release. I want to have as much of the travis specific build logic expressed in travis.yml as possible, hence having to figure out Travis's syntax rather than doing everything in a script that tests the $TRAVIS_BRANCH environment variable...
2019-01-05 11:59:16 +00:00

15 lines
363 B
Bash
Executable File

#!/bin/bash
# test TiddlyWiki5 for tiddlywiki.com
# Run the test edition to run the node.js tests and to generate test.html for tests in the browser
node ./tiddlywiki.js \
./editions/test \
--verbose \
--version \
--rendertiddler $:/core/save/all test.html text/plain \
|| exit 1
echo To run the tests in a browser, open "editions/test/output/test.html"