Skip to content

Commit eadff74

Browse files
committed
add greenhouse detection
1 parent 53fe8ea commit eadff74

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

codecov/__init__.py

+13
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,19 @@ def main(*argv, **kwargs):
338338
commit=os.getenv('REVISION')))
339339
write(' Semaphore Detected')
340340

341+
# ----------
342+
# Greenhouse
343+
# ----------
344+
elif os.getenv('GREENHOUSE') == 'true':
345+
# http://docs.greenhouseci.com/docs/environment-variables-files
346+
query.update(dict(branch=os.getenv('GREENHOUSE_BRANCH'),
347+
service='greenhouse',
348+
build=os.getenv('GREENHOUSE_BUILD_NUMBER'),
349+
build_url=os.getenv('GREENHOUSE_BUILD_URL'),
350+
pr=os.getenv('GREENHOUSE_PULL_REQUEST'),
351+
commit=os.getenv('GREENHOUSE_COMMIT')))
352+
write(' Greenhouse Detected')
353+
341354
# --------
342355
# drone.io
343356
# --------

0 commit comments

Comments
 (0)