From 9e612b886c946176eb0c2ad9989296247edc3b11 Mon Sep 17 00:00:00 2001 From: Marc CHEVALDONNE Date: Wed, 30 Nov 2022 21:33:54 +0100 Subject: [PATCH 1/7] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'README.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c965b7a..4446f25 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # connect4 - + ```mermaid classDiagram class Player -- 2.36.3 From d4bb8b6267d37cf0b82815244da51b713c558eab Mon Sep 17 00:00:00 2001 From: Marc CHEVALDONNE Date: Wed, 30 Nov 2022 21:39:11 +0100 Subject: [PATCH 2/7] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 86 +++++++++++++++++++++++++++--------------------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/.drone.yml b/.drone.yml index 554a456..062d0dd 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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/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 + + + \ No newline at end of file -- 2.36.3 From 5a3a0bacf2c17e94c467f92d28fe7776119a9c0f Mon Sep 17 00:00:00 2001 From: Marc CHEVALDONNE Date: Wed, 30 Nov 2022 21:41:11 +0100 Subject: [PATCH 3/7] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 062d0dd..4c5b219 100644 --- a/.drone.yml +++ b/.drone.yml @@ -30,7 +30,7 @@ steps: #- 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 + - /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/ -- 2.36.3 From 04980b5ee916e7711d8f4aaff027dcca70aa2b01 Mon Sep 17 00:00:00 2001 From: Marc CHEVALDONNE Date: Wed, 30 Nov 2022 21:51:33 +0100 Subject: [PATCH 4/7] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'sonar-project.?= =?UTF-8?q?properties'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sonar-project.properties | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/sonar-project.properties b/sonar-project.properties index 303bbbb..50804e8 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,11 +1,12 @@ -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.host.url=https://codefirst.iut.uca.fr/sonar/ # sonar.inclusions="*_ut.py" \ No newline at end of file -- 2.36.3 From 561acbe1bfdfd2b93d58c77d4b3bec545904850c Mon Sep 17 00:00:00 2001 From: Marc CHEVALDONNE Date: Wed, 30 Nov 2022 21:59:26 +0100 Subject: [PATCH 5/7] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'sonar-project.?= =?UTF-8?q?properties'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sonar-project.properties | 1 - 1 file changed, 1 deletion(-) diff --git a/sonar-project.properties b/sonar-project.properties index 50804e8..f323e15 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -8,5 +8,4 @@ sonar.sourceEncoding=UTF-8 sonar.python.xunit.reportPath=nosetests.xml sonar.python.coverage.reportPath=coverage.xml sonar.python.coveragePlugin=cobertura -sonar.host.url=https://codefirst.iut.uca.fr/sonar/ # sonar.inclusions="*_ut.py" \ No newline at end of file -- 2.36.3 From 24534f2ca4b08696ec44ab39c991f79d6b6e6807 Mon Sep 17 00:00:00 2001 From: Marc CHEVALDONNE Date: Wed, 30 Nov 2022 22:02:37 +0100 Subject: [PATCH 6/7] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'.drone.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 4c5b219..b12a073 100644 --- a/.drone.yml +++ b/.drone.yml @@ -16,7 +16,7 @@ steps: - name: code-analysis #image: aosapps/drone-sonar-plugin:latest #image: python:3.7 - image: hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-dronesonarplugin-python37 + image: hub.codefirst.iut.uca.fr/marc.chevaldonne/codefirst-dronesonarplugin-python37 commands: - pip install numpy #- pip install nose -- 2.36.3 From 99c82dbd9df4b92bbb4ca72721d65b0cabc6f306 Mon Sep 17 00:00:00 2001 From: Marc CHEVALDONNE Date: Wed, 30 Nov 2022 22:52:24 +0100 Subject: [PATCH 7/7] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20'sonar-project.?= =?UTF-8?q?properties'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sonar-project.properties | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sonar-project.properties b/sonar-project.properties index f323e15..1b59792 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -3,9 +3,9 @@ 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.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" \ No newline at end of file -- 2.36.3