1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-18 11:29:55 +00:00
TiddlyWiki5/.travis.yml

33 lines
1008 B
YAML
Raw Normal View History

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
- pwd
- cd output
- git init
- git config --global user.email "travis@travis-ci.org"
- git config --global user.name "Travis CI"
- git remote add upstream "https://$GH_TOKEN@github.com/Jermolene/Testing2019.git"
- git fetch upstream
- git reset upstream/master
- cd ..
- export TW5_BUILD_DETAILS="Built from branch '$TRAVIS_BRANCH' at commit $(git rev-parse HEAD) of $(git remote get-url origin)"
- export TW5_BUILD_TIDDLYWIKI='./node_modules/tiddlywiki/tiddlywiki.js'
- ./bin/build-site.sh
- cd output
- git add -A .
- git commit --message "Travis build: $TRAVIS_BUILD_NUMBER"
- git push -q upstream HEAD:master >/dev/null 2>&1
- cd ..