2019-01-04 17:25:30 +00:00
language : node_js
2019-01-04 17:45:52 +00:00
- "node"
2019-01-05 11:59:16 +00:00
stages :
2019-01-05 12:10:55 +00:00
- name : test
2019-01-07 18:40:22 +00:00
- name : build-prerelease
2019-01-05 11:59:16 +00:00
if : branch = "master"
2019-01-07 18:40:22 +00:00
- name : build-tiddlywiki-com
if : branch = "tiddlywiki-com"
2019-01-05 11:59:16 +00:00
jobs :
include :
- stage : test
script : ./bin/test.sh
2019-01-07 18:40:22 +00:00
- stage : build-prerelease
2019-01-06 21:14:32 +00:00
script :
2019-01-07 16:42:30 +00:00
- ./bin/travis-pre-build.sh
2019-01-07 21:30:58 +00:00
- export TW5_BUILD_TIDDLYWIKI='./tiddlywiki.js'
2019-01-08 10:34:50 +00:00
- export TW5_BUILD_VERSION=$(./bin/get-plugin-library-version-number)
2019-01-08 10:01:23 +00:00
- export TW5_BUILD_DETAILS="Prerelease built from branch '$TRAVIS_BRANCH' at commit $(git rev-parse HEAD) of $(git remote get-url origin) at $(date +'%F %T %Z')"
2019-01-07 18:40:22 +00:00
- export TW5_BUILD_MAIN_EDITION='./editions/prerelease'
- export TW5_BUILD_OUTPUT='./output/prerelease'
- ./bin/build-site.sh
- ./bin/travis-push.sh
- stage : build-tiddlywiki-com
script :
- ./bin/travis-pre-build.sh
2019-01-07 21:30:58 +00:00
- export TW5_BUILD_TIDDLYWIKI='./node_modules/tiddlywiki/tiddlywiki.js'
2019-01-08 10:34:50 +00:00
- export TW5_BUILD_VERSION=$(./bin/get-plugin-library-version-number)
2019-01-08 10:01:23 +00:00
- export TW5_BUILD_DETAILS="Built from branch '$TRAVIS_BRANCH' at commit $(git rev-parse HEAD) of $(git remote get-url origin) at $(date +'%F %T %Z')"
2019-01-07 18:40:22 +00:00
- export TW5_BUILD_MAIN_EDITION='./editions/tw5.com'
- export TW5_BUILD_OUTPUT='./output'
2019-01-06 21:14:32 +00:00
- ./bin/build-site.sh
2019-01-07 16:42:30 +00:00
- ./bin/travis-push.sh