Skip to content

Commit a0e86da

Browse files
committed
Trying to fix CI.
1 parent 5b108f4 commit a0e86da

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ install:
88
- pospell --version
99
script:
1010
- pospell -p dict -l fr **/*.po
11-
- make CPYTHON_CLONE=/tmp/cpython/ BRANCH=d4ed8809dd
11+
- make CPYTHON_CLONE=/tmp/cpython/ COMMIT=d4ed8809dd

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ VENV := ~/.venvs/python-docs-i18n/
2020
PYTHON := $(shell which python3)
2121
MODE := autobuild-dev-html
2222
BRANCH = 3.7
23+
COMMIT =
2324
JOBS = 4
2425

2526

@@ -34,7 +35,8 @@ endif
3435

3536

3637
$(SPHINX_CONF):
37-
git clone --depth 1 --no-single-branch --branch $(BRANCH) https://github.com/python/cpython.git $(CPYTHON_CLONE)
38+
git clone --depth 1 --branch $(BRANCH) https://github.com/python/cpython.git $(CPYTHON_CLONE)
39+
[ -n "$(COMMIT)" ] && i=1; while ! $$(git -C $(CPYTHON_CLONE) checkout $(COMMIT)); do i=$$((i * 2)); git -C $(CPYTHON_CLONE) fetch --depth $$i; done
3840

3941

4042
.PHONY: upgrade_venv

0 commit comments

Comments
 (0)