Skip to content

Commit

Permalink
fix(SDK): IBM Cloud SCC Python SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Goswami committed Jun 1, 2021
1 parent 552de5f commit 970acae
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ before_script:
- pip3 install -U python-dotenv

script:
- tox

after_success:
- build/testScript.sh

before_deploy:
Expand Down
3 changes: 1 addition & 2 deletions build/testScript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ if [[ $TRAVIS_BRANCH == "main" && $TRAVIS_PULL_REQUEST == "false" ]]; then
echo "${FINDINGS_ENV}" | base64 -d >> findings_v1.env
echo "${NOTIFICATIONS_ENV}" | base64 -d >> notifications_v1.env
# echo "${CONFIGURATION_GOVERNANCE_ENV}" | base64 -d >> configuration_governance_v1.env
tox
find . -name "*.env" -type f -delete
pytest test/integration
fi
6 changes: 6 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
coverage:
status:
project:
default:
# Tolerate a drop in coverage from PR <= 2%
threshold: 2%
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ envlist = py37-lint, py36, py37, py38, py39
[testenv:py37-lint]
basepython = python3.7
deps = pylint
commands = pylint --rcfile=.pylintrc ibm_scc test
commands = pylint --rcfile=.pylintrc ibm_scc test/unit test/integration examples

[testenv]
passenv = TOXENV CI TRAVIS* ACCOUNT_ID PROVIDER_ID
commands =
py.test --reruns 3 --cov=ibm_scc {posargs}
py.test --reruns 3 --cov=ibm_scc {posargs} test/unit
codecov -e TOXENV
deps =
-r{toxinidir}/requirements.txt
Expand Down

0 comments on commit 970acae

Please sign in to comment.