This repository has been archived by the owner on May 16, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also, install codecov only when needed to avoid having uneeded and possibly conflicting dependencies during tests
- Loading branch information
Showing
6 changed files
with
23 additions
and
37 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
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 |
---|---|---|
@@ -1,21 +1,7 @@ | ||
#!/usr/bin/env python | ||
|
||
import os | ||
|
||
from coverage.cmdline import main as coverage_main | ||
from coveralls import cli as coveralls_cli | ||
from codecov import main as codecov_main | ||
|
||
|
||
if (os.environ.get('TESTS', '1') == '1' and | ||
os.environ.get('TEST_ENABLE', '1') == '1' and | ||
not os.environ.get('LINT_CHECK') == '1'): | ||
coverage_main(["report", "--show-missing"]) | ||
try: | ||
coveralls_cli.main(argv=None) | ||
except: | ||
pass | ||
try: | ||
codecov_main(argv=None) | ||
except: | ||
pass | ||
#!/bin/bash | ||
set -e | ||
if [[ "${TESTS:-1}" == "1" ]] && [[ "${TEST_ENABLE:-1}" == "1" ]] && [[ "${LINT_CHECK}" != "1" ]]; then | ||
coverage report --show-missing | ||
pip install codecov | ||
codecov | ||
fi |
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