forked from MarkBind/markbind
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (38 loc) · 934 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: node_js
node_js:
- '12'
branches:
only:
- master
install: echo "default npm ci disabled"
script: echo "default npm test disabled"
before_deploy:
- npm i -g npm
- npm run setup
- npm run test
deploy:
# deploy on release, to markbind.org
- provider: script
script: >-
cd docs &&
../packages/cli/index.js build -s ug-site.json &&
../packages/cli/index.js deploy -s ug-site.json --ci
skip_cleanup: true
on:
repo: MarkBind/markbind
tags: true
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+
# deploy on any commit to master, to markbind.org/devdocs
- provider: script
script: >-
npm run build:web &&
cd docs &&
../packages/cli/index.js build -s dg-site.json &&
../packages/cli/index.js deploy -s dg-site.json --ci
skip_cleanup: true
on:
repo: MarkBind/markbind
cache:
directories:
- node_modules
sudo: false