1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-14 13:54:50 +00:00
TiddlyWiki5/.travis.yml
Jermolene 4e0b03b19f CI: Fix git branch detection
The old code was returning "HEAD" where we really want "master"
2019-01-07 10:38:48 +00:00

20 lines
496 B
YAML

language: node_js
- "node"
stages:
- name: test
- name: build
if: branch = "master"
jobs:
include:
- stage: test
script: ./bin/test.sh
- stage: build
script:
- npm --force install tiddlywiki
- export GIT_DETAILS="$(git symbolic-ref --short HEAD)-$(git rev-parse HEAD) from $(git remote get-url origin)"
- export TW5_BUILD_TIDDLYWIKI='./node_modules/tiddlywiki/tiddlywiki.js'
- ./bin/build-site.sh
- ./bin/deploy-site.sh