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