We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81a1f5c commit 0dad305Copy full SHA for 0dad305
1 file changed
cpp_coveralls/__init__.py
@@ -86,7 +86,14 @@ def run():
86
args.include.extend(yml.get('include', []))
87
args.exclude_lines_pattern.extend(yml.get('exclude_lines_pattern', []))
88
89
- args.service_job_id = os.environ.get('TRAVIS_JOB_ID', '')
+ if(args.service_name == 'travis-ci'):
90
+ args.service_job_id = os.environ.get('TRAVIS_JOB_ID', '')
91
+ elif(args.service_name == 'appveyor'):
92
+ args.service_job_id = os.environ.get('APPVEYOR_BUILD_ID', '')
93
+ elif(args.service_name == 'circle-ci'):
94
+ args.service_job_id = os.environ.get('CIRCLE_WORKFLOW_ID', '')
95
+ else:
96
+ args.service_job_id = os.environ.get('CI_BUILD_ID', '')
97
98
if args.repo_token == '' and args.service_job_id == '':
99
raise ValueError("\nno coveralls.io token specified and no travis job id found\n"
0 commit comments