mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-46178: Remove/rename redundant Travis CI code (#30309)
This commit is contained in:
parent
82c2b54a35
commit
2cf7d02b99
5 changed files with 8 additions and 23 deletions
|
@ -245,7 +245,7 @@ def regenerated_pyconfig_h_in(file_paths):
|
|||
else:
|
||||
return "not needed"
|
||||
|
||||
def travis(pull_request):
|
||||
def ci(pull_request):
|
||||
if pull_request == 'false':
|
||||
print('Not a pull request; skipping')
|
||||
return
|
||||
|
@ -301,10 +301,10 @@ def main():
|
|||
if __name__ == '__main__':
|
||||
import argparse
|
||||
parser = argparse.ArgumentParser(description=__doc__)
|
||||
parser.add_argument('--travis',
|
||||
parser.add_argument('--ci',
|
||||
help='Perform pass/fail checks')
|
||||
args = parser.parse_args()
|
||||
if args.travis:
|
||||
travis(args.travis)
|
||||
if args.ci:
|
||||
ci(args.ci)
|
||||
else:
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue