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: install
|
2019-01-05 11:59:16 +00:00
|
|
|
if: branch = "master"
|
2019-01-05 12:10:55 +00:00
|
|
|
- name: test
|
2019-01-06 19:08:23 +00:00
|
|
|
- name: pre-build
|
2019-01-05 11:59:16 +00:00
|
|
|
if: branch = "master"
|
2019-01-06 19:08:23 +00:00
|
|
|
- name: build
|
2019-01-05 11:59:16 +00:00
|
|
|
if: branch = "master"
|
2019-01-05 12:10:55 +00:00
|
|
|
- name: deploy
|
2019-01-05 11:59:16 +00:00
|
|
|
if: branch = "master"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
include:
|
|
|
|
- stage: install
|
|
|
|
script: npm --force install tiddlywiki
|
|
|
|
- stage: test
|
|
|
|
script: ./bin/test.sh
|
2019-01-06 19:08:23 +00:00
|
|
|
- stage: pre-build
|
|
|
|
script: skip
|
2019-01-05 11:59:16 +00:00
|
|
|
- stage: build
|
2019-01-06 21:14:32 +00:00
|
|
|
script:
|
|
|
|
- TW5_BUILD_TIDDLYWIKI='./node_modules/tiddlywiki/tiddlywiki.js'
|
|
|
|
- ./bin/build-site.sh
|
2019-01-05 11:59:16 +00:00
|
|
|
- stage: deploy
|
|
|
|
script: ./bin/deploy-site.sh
|