|
|
|
@ -11,7 +11,32 @@ steps:
|
|
|
|
|
commands:
|
|
|
|
|
- pip install parameterized
|
|
|
|
|
- python -m unittest discover -v -p *_ut.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: code-analysis
|
|
|
|
|
#image: aosapps/drone-sonar-plugin:latest
|
|
|
|
|
#image: python:3.7
|
|
|
|
|
image: pubhub.codefirst.ddns.net/thbellem/codefirst-dronesonarplugin-python37
|
|
|
|
|
commands:
|
|
|
|
|
#- pip install nose
|
|
|
|
|
#- pip install coverage
|
|
|
|
|
#- pip install parameterized
|
|
|
|
|
#- nosetests --with-coverage --cover-branches --cover-xml
|
|
|
|
|
- nosetests connect4/tests/*_ut.py --with-coverage --cover-branches --cover-xml
|
|
|
|
|
#- cat coverage.xml
|
|
|
|
|
#- export
|
|
|
|
|
#- env
|
|
|
|
|
#- echo $PLUGIN_SONAR_TOKEN
|
|
|
|
|
#- sed -i 's/filename="/filename=".\//g' coverage-reports/coverage-test.xml
|
|
|
|
|
#- sonar-runner
|
|
|
|
|
- /opt/sonar-scanner/bin/sonar-scanner -Dsonar.login=$PLUGIN_SONAR_TOKEN
|
|
|
|
|
settings:
|
|
|
|
|
# accessible en ligne de commande par $${PLUGIN_SONAR_HOST}
|
|
|
|
|
sonar_host: https://codefirst.ddns.net/sonar/
|
|
|
|
|
# accessible en ligne de commande par $${PLUGIN_SONAR_TOKEN}
|
|
|
|
|
sonar_token:
|
|
|
|
|
from_secret: SECRET_SONAR_LOGIN
|
|
|
|
|
sonar.python.version: 3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|