forked from ipython/ipython-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (27 loc) · 865 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
language: python
sudo: false
matrix:
include:
- python: 3.4
install:
- pip install sphinx
script:
- git config --global user.email "TravisBot@nomail"
- git config --global user.name "TravisBot"
- git config --global push.default simple
- make gh-pages
- true #change for real tests like linkcheck.
after_success:
|
if [[ $TRAVIS_PULL_REQUEST == false && $TRAVIS_BRANCH == 'master' ]]; then
echo "Will build Documentation"
# shoudl decrypt ssh key
openssl aes-256-cbc -K $encrypted_7d2843e800b0_key -iv $encrypted_7d2843e800b0_iv -in .travis/travis_id_rsa_2048.enc -out .travis/travis_id_rsa_2048 -d
eval `ssh-agent -s`
chmod 600 .travis/travis_id_rsa_2048
ssh-add .travis/travis_id_rsa_2048
cd gh-pages
git push ghpages
else
echo "Will only deploy docs build from ipython-website master branch"
fi