File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 21
21
- pip install --upgrade pip
22
22
- make dev-env
23
23
script :
24
- - if [ $(make n-docs-diff) -ne 0 ]; then make tx-en; fi;
24
+ - if [ $(make n-docs-diff DIFF_RANGE=$TRAVIS_COMMIT_RANGE ) -ne 0 ]; then make tx-en; fi;
25
25
26
26
stages :
27
27
- name : test-pr
Original file line number Diff line number Diff line change 6
6
SHELL: =bash
7
7
OWNER: =jupyter
8
8
ARCH: =$(shell uname -m)
9
+ DIFF_RANGE? =master...HEAD
9
10
10
11
# Need to list the images in build dependency order
11
12
ifeq ($(ARCH ) ,ppc64le)
@@ -61,10 +62,11 @@ docs: ## build HTML documentation
61
62
make -C docs html
62
63
63
64
n-docs-diff : # # number of docs/ files changed since branch from master
64
- @git diff --name-only master...HEAD -- docs/ | wc -l | awk ' {print $$1}'
65
+ @git diff --name-only $(DIFF_RANGE ) -- docs/ | wc -l | awk ' {print $$1}'
66
+
65
67
66
68
n-other-diff : # # number of files outside docs/ changed since branch from master
67
- @git diff --name-only master...HEAD -- ' :!docs/' | wc -l | awk ' {print $$1}'
69
+ @git diff --name-only $( DIFF_RANGE ) -- ' :!docs/' | wc -l | awk ' {print $$1}'
68
70
69
71
tx-en : # # rebuild en locale strings and push to master
70
72
git config --global user.email
" [email protected] "
You can’t perform that action at this time.
0 commit comments