-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge master into features
- Loading branch information
Showing
9 changed files
with
134 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
""" | ||
Appends the codecov token to the 'codecov.yml' file at the root of the repository. | ||
This is done by CI during PRs and builds on the pytest-dev repository so we can upload coverage, at least | ||
until codecov grows some native integration like it has with Travis and AppVeyor. | ||
See discussion in https://github.com/pytest-dev/pytest/pull/6441 for more information. | ||
""" | ||
import os.path | ||
from textwrap import dedent | ||
|
||
|
||
def main(): | ||
this_dir = os.path.dirname(__file__) | ||
cov_file = os.path.join(this_dir, "..", "codecov.yml") | ||
|
||
assert os.path.isfile(cov_file), "{cov_file} does not exist".format( | ||
cov_file=cov_file | ||
) | ||
|
||
with open(cov_file, "a") as f: | ||
# token from: https://codecov.io/gh/pytest-dev/pytest/settings | ||
# use same URL to regenerate it if needed | ||
text = dedent( | ||
""" | ||
codecov: | ||
token: "1eca3b1f-31a2-4fb8-a8c3-138b441b50a7" | ||
""" | ||
) | ||
f.write(text) | ||
|
||
print("Token updated:", cov_file) | ||
|
||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters