Skip to content

Commit 970acae

Browse files
author
Gaurav Goswami
committed
fix(SDK): IBM Cloud SCC Python SDK
1 parent 552de5f commit 970acae

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ before_script:
2727
- pip3 install -U python-dotenv
2828

2929
script:
30+
- tox
31+
32+
after_success:
3033
- build/testScript.sh
3134

3235
before_deploy:

build/testScript.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ if [[ $TRAVIS_BRANCH == "main" && $TRAVIS_PULL_REQUEST == "false" ]]; then
55
echo "${FINDINGS_ENV}" | base64 -d >> findings_v1.env
66
echo "${NOTIFICATIONS_ENV}" | base64 -d >> notifications_v1.env
77
# echo "${CONFIGURATION_GOVERNANCE_ENV}" | base64 -d >> configuration_governance_v1.env
8-
tox
9-
find . -name "*.env" -type f -delete
8+
pytest test/integration
109
fi

codecov.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
# Tolerate a drop in coverage from PR <= 2%
6+
threshold: 2%

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ envlist = py37-lint, py36, py37, py38, py39
44
[testenv:py37-lint]
55
basepython = python3.7
66
deps = pylint
7-
commands = pylint --rcfile=.pylintrc ibm_scc test
7+
commands = pylint --rcfile=.pylintrc ibm_scc test/unit test/integration examples
88

99
[testenv]
1010
passenv = TOXENV CI TRAVIS* ACCOUNT_ID PROVIDER_ID
1111
commands =
12-
py.test --reruns 3 --cov=ibm_scc {posargs}
12+
py.test --reruns 3 --cov=ibm_scc {posargs} test/unit
1313
codecov -e TOXENV
1414
deps =
1515
-r{toxinidir}/requirements.txt

0 commit comments

Comments
 (0)