File tree Expand file tree Collapse file tree 5 files changed +25
-10
lines changed Expand file tree Collapse file tree 5 files changed +25
-10
lines changed Original file line number Diff line number Diff line change 16
16
- TRANSIFEX_PROJECT=python-newest
17
17
# Directory where repositories are cloned
18
18
- BASEDIR="$(dirname ${TRAVIS_BUILD_DIR})"
19
- before_install :
20
- - bash ${TRAVIS_BUILD_DIR}/scripts/before_install_3.7
19
+ # Number of parent commits
20
+ - NUM_PARENTS=$(git log --pretty=%P -n 1 HEAD | awk '{ print NF }')
21
21
install :
22
- - pip install sphinx
23
- - pip install blurb
24
- - pip install transifex-client
25
- - pip install sphinx-intl
22
+ - pip install sphinx
23
+ - pip install blurb
24
+ - pip install transifex-client
25
+ - pip install sphinx-intl
26
+ before_script :
27
+ - build_type=$(bash ${TRAVIS_BUILD_DIR}/scripts/determine-build-type)
26
28
script :
27
- # upload-catalog
28
- - bash ${TRAVIS_BUILD_DIR}/scripts/upload-catalog
29
- # renew-catalog-template
30
- - bash ${TRAVIS_BUILD_DIR}/scripts/renew-catalog-template
29
+ - bash ${TRAVIS_BUILD_DIR}/scripts/${build_type}/prepare-build_3.7
30
+ - bash ${TRAVIS_BUILD_DIR}/scripts/${build_type}/upload-catalog
31
+ - bash ${TRAVIS_BUILD_DIR}/scripts/${build_type}/renew-catalog-template
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ set -eux
3
+
4
+ if [[ " ${TRAVIS_EVENT_TYPE} " == " push" ]]; then
5
+ if [[ ${NUM_PARENTS} == 1 ]]; then
6
+ echo push
7
+ else
8
+ echo pr-merge
9
+ fi
10
+ elif [[ " ${TRAVIS_EVENT_TYPE} " == " pull_request" ]]; then
11
+ echo pr
12
+ elif [[ " ${TRAVIS_EVENT_TYPE} " == " cron" ]]; then
13
+ echo push
14
+ fi
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments