forked from nethesis/nethcti-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (23 loc) · 860 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
---
language: python
python:
- "2.7"
env:
global:
- SSH_RSYNC="sshpass -e ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null"
- BUILD_DIR=user-manual
- TARGET_DIR=${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_TAG:-${TRAVIS_BRANCH}}}
- SPHINX_OPTS="-b html -A current_version=${TARGET_DIR}"
install:
- sudo apt-get install sshpass
- pip install -r ${BUILD_DIR}/requirements.txt sphinx==1.7.4
script:
- pushd ${BUILD_DIR}/
- sphinx-build -D language=it ${SPHINX_OPTS} -d _build/doctrees/it . _build/webroot/it/${TARGET_DIR}
- popd
deploy:
provider: script
skip_cleanup: true
script: rsync -ai --no-super --filter="+ /*/${TARGET_DIR}/**" --filter='-r *' --delete-after -e "${SSH_RSYNC}" ${BUILD_DIR}/_build/webroot/* [email protected]:.
on:
all_branches: true