commit
9a34596769
@ -1,44 +1,44 @@
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: testPythonconnect4
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
steps:
|
||||
- name: test
|
||||
image: python:3.7
|
||||
commands:
|
||||
- pip install parameterized
|
||||
- pip install numpy
|
||||
- python -m unittest discover -v -p *_ut.py
|
||||
|
||||
- name: code-analysis
|
||||
#image: aosapps/drone-sonar-plugin:latest
|
||||
#image: python:3.7
|
||||
image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-python37
|
||||
commands:
|
||||
- pip install numpy
|
||||
#- pip install nose
|
||||
#- pip install coverage
|
||||
#- pip install parameterized
|
||||
#- nosetests --with-coverage --cover-branches --cover-xml
|
||||
- nosetests connect4/test/*_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.iut.uca.fr/sonar/
|
||||
# accessible en ligne de commande par $${PLUGIN_SONAR_TOKEN}
|
||||
sonar_token:
|
||||
from_secret: ${SECRET_SONAR_LOGIN}
|
||||
sonar.python.version: 3
|
||||
|
||||
|
||||
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: testPythonconnect4
|
||||
|
||||
trigger:
|
||||
event:
|
||||
- push
|
||||
steps:
|
||||
- name: test
|
||||
image: python:3.7
|
||||
commands:
|
||||
- pip install parameterized
|
||||
- pip install numpy
|
||||
- python -m unittest discover -v -p *_ut.py
|
||||
|
||||
- name: code-analysis
|
||||
#image: aosapps/drone-sonar-plugin:latest
|
||||
#image: python:3.7
|
||||
image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-python37
|
||||
commands:
|
||||
- pip install numpy
|
||||
#- pip install nose
|
||||
#- pip install coverage
|
||||
#- pip install parameterized
|
||||
#- nosetests --with-coverage --cover-branches --cover-xml
|
||||
- nosetests connect4/test/*_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.iut.uca.fr/sonar/
|
||||
# accessible en ligne de commande par $${PLUGIN_SONAR_TOKEN}
|
||||
sonar_token:
|
||||
from_secret: SECRET_SONAR_LOGIN
|
||||
sonar.python.version: 3
|
||||
|
||||
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
sonar.projectKey=connect4
|
||||
sonar.projectName=Connect4 Workshop
|
||||
sonar.projectVersion=1.0
|
||||
sonar.sources=connect4/src
|
||||
sonar.tests=connect4/test
|
||||
sonar.language=py
|
||||
sonar.sourceEncoding=UTF-8
|
||||
sonar.python.xunit.reportPath=nosetests.xml
|
||||
sonar.python.coverage.reportPath=coverage.xml
|
||||
sonar.python.coveragePlugin=cobertura
|
||||
sonar.projectKey=connect4
|
||||
sonar.projectName=Connect4 Workshop
|
||||
sonar.projectVersion=1.0
|
||||
sonar.sources=connect4/src
|
||||
sonar.tests=connect4/test
|
||||
# sonar.language=py
|
||||
# sonar.sourceEncoding=UTF-8
|
||||
# sonar.python.xunit.reportPath=nosetests.xml
|
||||
# sonar.python.coverage.reportPath=coverage.xml
|
||||
# sonar.python.coveragePlugin=cobertura
|
||||
# sonar.inclusions="*_ut.py"
|
Loading…
Reference in new issue