Skip to content

Commit

Permalink
.travis.yml: Invoke pytest directly
Browse files Browse the repository at this point in the history
Removes tests.sh wrapper and env_variables.sh

Add coverage plugins to provide environment variables.
  • Loading branch information
jayvdb committed Nov 8, 2018
1 parent cbcee6c commit b6b8aad
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 22 deletions.
9 changes: 0 additions & 9 deletions .ci/env_variables.sh

This file was deleted.

12 changes: 0 additions & 12 deletions .ci/tests.sh

This file was deleted.

2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ before_script:
script:
- python setup.py bdist_wheel
- pip install $(ls ./dist/*.whl)"[alldeps]"
- bash .ci/tests.sh
- pytest
# Ensure bear requirements are in sync with the bear PipRequirement
- .ci/generate_bear_requirements.py --check --update
- git diff --exit-code
Expand Down
24 changes: 24 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,35 @@ env =
# PYTHONHASHSEED=0 is required to use same hashes in pytests-xdist's workers
python_paths = .ci/

[coverage:coverage_env_plugin]
markers = True

[coverage:run]
branch = True
cover_pylib = False

plugins =
coverage_env_plugin
coverage_config_reload_plugin

source =
bears

omit =
tests/*
setup.py
.ci/*
tests/python/bandit_test_files/

[coverage:report]
fail_under = 100
show_missing = True
skip_covered = False
sort = Miss
exclude_lines =
pragma: no ?cover
pragma ${PLATFORM_SYSTEM}: no cover
pragma ${OS_NAME}: no cover
pragma Python [0-9.,]*${PYTHON_VERSION}[0-9.,]*: no cover

[coverage:force_end_of_section]

0 comments on commit b6b8aad

Please sign in to comment.