Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
43 additions
and
24 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 | ||
# as 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 |
---|---|---|
|
@@ -11,3 +11,5 @@ omit = | |
# Command-line scripts. | ||
*/tuf/scripts/client.py | ||
*/tuf/scripts/repo.py | ||
*/tests/* | ||
*/site-packages/* |
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