forked from jupyter/jupyter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (45 loc) · 2.14 KB
/
.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
39
40
41
42
43
44
45
46
47
48
language: python
sudo: false
python:
- 3.7
jobs:
include:
- stage: test-docs
install:
- pip install --upgrade pip sphinx
- pip install -r docs/doc-requirements.txt
script:
# Test build of HTML docs and English translation templates
- make -C docs html
- make -C docs gettext
- cd docs && sphinx-intl update -p build/locale -l en
- stage: push-tx
install:
- pip install --upgrade pip sphinx
- pip install -r docs/doc-requirements.txt
script:
- cd docs
# Rebuild HTML again to test for merge problems
- make html
# Regenerate English translation templates
- make gettext
- sphinx-intl update -p build/locale -l en
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
# Stage any changes to the english source files
- git checkout master
- git add -A source/locale/en
- git status
# Commit the english templates, exiting early if there are no changes
- git commit -m '[ci skip] Update English source strings' || travis_terminate 0;
# Push the commit to master for Transifex to notice and update its strings for translation
- git remote add origin-tx https://${GH_TOKEN}@github.com/jupyter/jupyter.git
- git push -u origin-tx master
stages:
- name: test-docs
if: type = pull_request
- name: push-tx
if: type = push AND branch = master
env:
global:
secure: "xWn2cnWWNgtQEm9MXAIQerigtwkZxMDQYQnlbALvHywy63MVsWwvDSi9AnPm9ty+TuNxu8bWXGP99KNjSgPEkvb5wA/uCGmmD1l6eA8CdxWZeRVEQ88NNQMXvAwxmUEGub0OSBaLC37WHXWrM1BzPV9jXQGS5HKC1icu9en/ScorOnw7Waz1wfVpjZRPLbp/8+M5jadpp6VZfCp4rsAdb6wuBy0JKA383azPE8e87WBqDWCS3zR2esZqwJKkOpkMsTcIs+n6naJXFl9rmM5o+l4vEQ0aUpAzzdE2ZrX9HfwCuOAFGJmlYmdmCbNFty3Dh6vkdtZvp2ptysda6Tb2FFc1+5kWhzfrQoHBhkXQW9557YGjwmIohjCy7pmTxtucnd9JgqOUNH1dnvQ8Z4RMOTcIc1loKe80I903Yw4aFkj36gMWtMfqUghpEn1ZYbtl5k/ZWwTnRKyyg8bkFPU7EyXn+u97ItPMdIpRybXUa2qKWGohXoziDur/7ecJOiCI1ynJlUT8sJRa8fhpRd0/iTC28zECU3wa+G1nx4XcOowNX9tJAV4EpaL/DFNLXlxXfs1JX0Ccn0YTaljo/suOnINzBl1Dn87QDdYlvijFwmRrXWS363wjzp0K9OqqSWkfEAEuSBI6d4Ywc64Ob4+pRoBJIW3sT2LHNvP0yUQL39Y="