forked from kubesphere-retired/docs.kubesphere.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (29 loc) · 853 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
language: node_js
sudo: false
dist: trusty
node_js:
- '10'
services:
- docker
cache:
yarn: true
directories:
- 'node_modules'
install:
- yarn
- bash ./princexml/install.sh
script:
- yarn test
- yarn build
- yarn serve
- sleep 5
- prince --javascript --structured-log=quiet --page-margin 0 http://localhost:9000/docs/express/zh-CN/all/ -o public/KubeSphere-express.pdf
- prince --javascript --structured-log=quiet --page-margin 0 http://localhost:9000/docs/advanced-v1.0/zh-CN/all/ -o public/KubeSphere-advanced-v1.0.pdf
- prince --javascript --structured-log=quiet --page-margin 0 http://localhost:9000/docs/advanced-v2.0/zh-CN/all/ -o public/KubeSphere-advanced-v2.0.pdf
before_deploy:
- docker build -t kubesphere/docs.kubesphere.io .
deploy:
provider: script
script: bash docker_push
on:
branch: master