-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #890 from lukpueh/fix-coveralls
Fix publishing of coverage results to coveralls.io (+ misc test config updates)
- Loading branch information
Showing
5 changed files
with
43 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
dist: xenial | ||
language: python | ||
dist: trusty | ||
sudo: false | ||
cache: pip | ||
python: 3.6 | ||
|
||
env: | ||
- TOXENV=py27 | ||
- TOXENV=py34 | ||
- TOXENV=py36 | ||
matrix: | ||
include: | ||
- python: "2.7" | ||
env: TOXENV=py27 | ||
- python: "3.4" | ||
env: TOXENV=py34 | ||
- python: "3.5" | ||
env: TOXENV=py35 | ||
- python: "3.6" | ||
env: TOXENV=py36 | ||
|
||
before_script: | ||
- pip install pylint bandit tox | ||
install: | ||
- pip install tox coveralls | ||
|
||
script: | ||
- pylint tuf | ||
- bandit -r tuf | ||
- tox | ||
|
||
after_success: | ||
- cd tests | ||
- coveralls | ||
- cd - | ||
|
||
branches: | ||
only: | ||
- develop | ||
- pylint | ||
- bandit | ||
# Workaround to get coverage reports with relative paths. | ||
# FIXME: Consider refactoring the tests to not require the test aggregation | ||
# script being invoked from the `tests` directory, so that `.coverage` is | ||
# written to and .coveragrc can also reside in the project root directory, as | ||
# is the convention. | ||
- cp tests/.coverage . | ||
- coveralls --rcfile=tests/.coveragerc |
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,7 +1,9 @@ | ||
securesystemslib[crypto,pynacl] | ||
six | ||
iso8601 | ||
coverage | ||
coveralls | ||
pylint | ||
requests | ||
pylint | ||
bandit | ||
# Pin to versions supported by `coveralls` (see .travis.yml) | ||
# https://github.com/coveralls-clients/coveralls-python/releases/tag/1.8.1 | ||
coverage<5.0 |
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,13 +1,15 @@ | ||
[run] | ||
branch = True | ||
|
||
omit = | ||
# Command-line scripts. | ||
*/tuf/scripts/client.py | ||
*/tuf/scripts/repo.py | ||
*/tests/* | ||
*/site-packages/* | ||
|
||
[report] | ||
exclude_lines = | ||
pragma: no cover | ||
def __str__ | ||
if __name__ == .__main__.: | ||
|
||
omit = | ||
# Command-line scripts. | ||
*/tuf/scripts/client.py | ||
*/tuf/scripts/repo.py |
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