From 5a83ec8676f3d4488e03bbf52f012817ec09388e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Wed, 26 Oct 2022 06:23:07 +0200 Subject: [PATCH 1/8] Update '.drone.yml' --- .drone.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index d4063be..64ac063 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,4 +7,14 @@ steps: image: cirrusci/flutter:stable commands: - flutter doctor - - flutter build \ No newline at end of file + - flutter build + +- name: code-analysis + image: cirrusci/flutter:stable + environment: + SONAR_TOKEN: + from_secret: sonar_token + settings: + sources: ./Sources + commands: + - cd Sources/dafl_project_flutter -- 2.36.3 From 631a8aaa4cc7077ba5819348ee7d656b4a18fd78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Fri, 28 Oct 2022 21:28:49 +0200 Subject: [PATCH 2/8] Update '.drone.yml' --- .drone.yml | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 64ac063..6d8c183 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,11 +10,20 @@ steps: - flutter build - name: code-analysis - image: cirrusci/flutter:stable - environment: - SONAR_TOKEN: - from_secret: sonar_token - settings: - sources: ./Sources - commands: - - cd Sources/dafl_project_flutter + image: cirrusci/flutter:stable + #hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-sonar + environment: + SONAR_TOKEN: + from_secret: sonar_token + commands: + #- apk add zip unzip openjdk11 tree + - export SONAR_SCANNER_VERSION=4.7.0.2747 + - mkdir .sonar + - cd .sonar + - wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip + - unzip -o sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip + - cd sonar-scanner-$SONAR_SCANNER_VERSION-linux/ + - cd ../.. + - export SONAR_SCANNER_OPTS="-server" + - ./.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux/bin/sonar-scanner -D sonar.projectKey=Passworld -D sonar.host.url=https://codefirst.iut.uca.fr/sonar -D sonar.login=$${SONAR_TOKEN} + depends_on: [ build-apk ] \ No newline at end of file -- 2.36.3 From 14aa83c3d6dfeab31c8c8f95533627ce88b22f5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Fri, 28 Oct 2022 21:30:26 +0200 Subject: [PATCH 3/8] Update '.drone.yml' --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 6d8c183..77735d3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,7 +8,7 @@ steps: commands: - flutter doctor - flutter build - + - name: code-analysis image: cirrusci/flutter:stable #hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-sonar -- 2.36.3 From 5504cdc6a5560938ac310aa1f50a7e66da4a78a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Fri, 28 Oct 2022 21:43:19 +0200 Subject: [PATCH 4/8] Update '.drone.yml' --- .drone.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 77735d3..c4e51a1 100644 --- a/.drone.yml +++ b/.drone.yml @@ -25,5 +25,5 @@ steps: - cd sonar-scanner-$SONAR_SCANNER_VERSION-linux/ - cd ../.. - export SONAR_SCANNER_OPTS="-server" - - ./.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux/bin/sonar-scanner -D sonar.projectKey=Passworld -D sonar.host.url=https://codefirst.iut.uca.fr/sonar -D sonar.login=$${SONAR_TOKEN} - depends_on: [ build-apk ] \ No newline at end of file + - ./.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux/bin/sonar-scanner -D sonar.projectKey=DAFLMusic -D sonar.host.url=https://codefirst.iut.uca.fr/sonar -D sonar.login=$${SONAR_TOKEN} + depends_on: [ app-build ] \ No newline at end of file -- 2.36.3 From bfb15465c7d6a0acacc9ca35c0c781eee6f81852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Fri, 28 Oct 2022 21:48:26 +0200 Subject: [PATCH 5/8] Update '.drone.yml' --- .drone.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.drone.yml b/.drone.yml index c4e51a1..afd3e04 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,6 +15,8 @@ steps: environment: SONAR_TOKEN: from_secret: sonar_token + settings: + sources: ./Sources commands: #- apk add zip unzip openjdk11 tree - export SONAR_SCANNER_VERSION=4.7.0.2747 -- 2.36.3 From eb664746dbbe322978e7dacbc2b52b840aea5bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Fri, 28 Oct 2022 22:01:44 +0200 Subject: [PATCH 6/8] Update '.drone.yml' --- .drone.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.drone.yml b/.drone.yml index afd3e04..1975dc2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,21 +11,17 @@ steps: - name: code-analysis image: cirrusci/flutter:stable - #hub.codefirst.iut.uca.fr/thomas.bellembois/codefirst-sonar environment: SONAR_TOKEN: from_secret: sonar_token settings: sources: ./Sources commands: - #- apk add zip unzip openjdk11 tree - export SONAR_SCANNER_VERSION=4.7.0.2747 - - mkdir .sonar - - cd .sonar - - wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip - - unzip -o sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip - - cd sonar-scanner-$SONAR_SCANNER_VERSION-linux/ - - cd ../.. + - export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux + - curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip + - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/ + - export PATH=$SONAR_SCANNER_HOME/bin:$PATH - export SONAR_SCANNER_OPTS="-server" - - ./.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux/bin/sonar-scanner -D sonar.projectKey=DAFLMusic -D sonar.host.url=https://codefirst.iut.uca.fr/sonar -D sonar.login=$${SONAR_TOKEN} + - sonar-scanner -D sonar.projectKey=DAFLMusic -D sonar.sources=. -D sonar.host.url=https://codefirst.iut.uca.fr/sonar depends_on: [ app-build ] \ No newline at end of file -- 2.36.3 From 5d1cd1238395b144bead765ee5ae85b3bc1732cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Fri, 28 Oct 2022 22:03:50 +0200 Subject: [PATCH 7/8] Update '.drone.yml' --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 1975dc2..789b945 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,7 +15,7 @@ steps: SONAR_TOKEN: from_secret: sonar_token settings: - sources: ./Sources + sources: ./Sources/dafl_project_flutter commands: - export SONAR_SCANNER_VERSION=4.7.0.2747 - export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux -- 2.36.3 From 072fd86cc37647b2a1ce9d19f6ebf56364d0714a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20MIELCAREK?= Date: Fri, 28 Oct 2022 22:05:47 +0200 Subject: [PATCH 8/8] Update '.drone.yml' --- .drone.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.drone.yml b/.drone.yml index 789b945..16ac98d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,18 +10,18 @@ steps: - flutter build - name: code-analysis - image: cirrusci/flutter:stable - environment: - SONAR_TOKEN: - from_secret: sonar_token - settings: - sources: ./Sources/dafl_project_flutter - commands: - - export SONAR_SCANNER_VERSION=4.7.0.2747 - - export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux - - curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip - - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/ - - export PATH=$SONAR_SCANNER_HOME/bin:$PATH - - export SONAR_SCANNER_OPTS="-server" - - sonar-scanner -D sonar.projectKey=DAFLMusic -D sonar.sources=. -D sonar.host.url=https://codefirst.iut.uca.fr/sonar - depends_on: [ app-build ] \ No newline at end of file + image: cirrusci/flutter:stable + environment: + SONAR_TOKEN: + from_secret: sonar_token + settings: + sources: ./Sources/dafl_project_flutter + commands: + - export SONAR_SCANNER_VERSION=4.7.0.2747 + - export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux + - curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip + - unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/ + - export PATH=$SONAR_SCANNER_HOME/bin:$PATH + - export SONAR_SCANNER_OPTS="-server" + - sonar-scanner -D sonar.projectKey=DAFLMusic -D sonar.sources=. -D sonar.host.url=https://codefirst.iut.uca.fr/sonar + depends_on: [ app-build ] \ No newline at end of file -- 2.36.3