updated sonarscran.sh to use containerized tests
This commit is contained in:
parent
b79bfd7db7
commit
6c6e49eecc
@ -6,11 +6,17 @@ export JAVA_HOME=/usr/bin/sonar-scanner/jre
|
|||||||
python3 -m venv build_venv
|
python3 -m venv build_venv
|
||||||
source build_venv/bin/activate
|
source build_venv/bin/activate
|
||||||
python3 -m pip install --upgrade pip
|
python3 -m pip install --upgrade pip
|
||||||
|
python3 -m pip install dependency-check
|
||||||
|
python3 -m pip install coverage
|
||||||
|
|
||||||
echo "dev setup for unit test and coverage 💖"
|
echo "coverage report generation"
|
||||||
|
|
||||||
pip install -e .
|
bash run_tests.sh
|
||||||
pip install -r requirements.txt
|
|
||||||
|
if [ ! -f reports/coverage.xml ]
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
SERVICE_NAME=$1
|
SERVICE_NAME=$1
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user