Commit 8ed43fa 1 parent 76c27c0 commit 8ed43fa Copy full SHA for 8ed43fa
File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ PYTEST="python -m pytest -n2"
24
24
25
25
$PYTEST --runpytest=subprocess tests/pytest
26
26
27
- pip install " .[datetime ]"
27
+ pip install " .[pytz ]"
28
28
$PYTEST tests/datetime/
29
29
pip uninstall -y pytz
30
30
Original file line number Diff line number Diff line change 26
26
27
27
sys .path .append (os .path .dirname (__file__ )) # noqa
28
28
29
+ DO_RELEASE_CHECK = os .environ .get ('TRAVIS_BRANCH' , 'master' ) == 'master'
29
30
30
31
if __name__ == '__main__' :
31
- if tools .has_source_changes ():
32
+ if DO_RELEASE_CHECK and tools .has_source_changes ():
32
33
if not tools .has_release ():
33
34
print (
34
35
'There are source changes but no RELEASE.rst. Please create '
35
36
'one to describe your changes.'
36
37
)
37
38
sys .exit (1 )
38
39
tools .parse_release_file ()
40
+ else :
41
+ print ('Skipping release check, because this is not the master branch '
42
+ 'or the pull request is not targeting the master branch.' )
You can’t perform that action at this time.
0 commit comments