Skip to content

Commit

Permalink
Merge pull request #2 from hypothesis/dont-disable-env-report-on-CI
Browse files Browse the repository at this point in the history
Don't disable the env report on CI
  • Loading branch information
seanh authored Jul 11, 2022
2 parents 86e97d8 + 114e560 commit 99a198f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,9 @@ lint run-test-pre: PYTHONHASHSEED='3084948731'
lint run-test: commands[0] | pylint lms bin
...
```

**tox-faster doesn't disable the env report on CI.**
The env report can be useful diagnostic information on CI so if an environment
variable named `CI` is set to any value then tox-faster won't disable the env report.
This also enables you to re-enable the env report locally by running
`CI=yes tox ...`.
13 changes: 13 additions & 0 deletions src/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from os import environ

import pluggy

hookimpl = pluggy.HookimplMarker("tox")


@hookimpl
def tox_runenvreport(venv, action): # pylint:disable=unused-argument
if "CI" in environ:
return None

return []

0 comments on commit 99a198f

Please sign in to comment.