forked from python/python-docs-ja
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (30 loc) · 862 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
dist: bionic
language: python
python: '3.8'
branches:
only:
- 3.10
env:
global:
# branch name of python-docs-ja repository
- DOCS_BRANCH=3.10
# branch name of cpython repository
- CPYTHON_BRANCH=3.10
# branch name of cpython-doc-catalog repository
- CATALOG_BRANCH=catalog-3.10
# Transifex project name
- TRANSIFEX_PROJECT=python-newest
# Directory where repositories are cloned
- BASEDIR="$(dirname ${TRAVIS_BUILD_DIR})"
# Number of parent commits
- NUM_PARENTS=$(git log --pretty=%P -n 1 HEAD | awk '{ print NF }')
install:
- pip install sphinx
- pip install blurb
- pip install transifex-client
- pip install sphinx-intl
before_script:
- build_type=$(bash ${TRAVIS_BUILD_DIR}/scripts/determine-build-type)
- export build_type
script:
- bash ${TRAVIS_BUILD_DIR}/scripts/${build_type}/main.sh