From d833698f17c41e23808aca813e50ba08893fbf0e Mon Sep 17 00:00:00 2001 From: Emre KARTAL Date: Sat, 11 Feb 2023 18:41:33 +0100 Subject: [PATCH 01/12] Add .drone.yml --- .drone.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..bbd31e8 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,35 @@ +kind: pipeline +type: docker +name: FLAD + + +trigger: + event: + - push + +steps: +# build CONTAINER for app-build on flutter IMAGE + - name: app-build + image: node:17.9.0 + environment: + - NODE_ENV=production + commands: + - cd ./src/FLAD/ + - npm run build +# build CONTAINER for sonar on flutter IMAGE + - name: code-analysis + image: node:17.9.0 + environment: + SONAR_TOKEN: + from_secret: SONAR_TOKEN + settings: + sources: ./src/FLAD/ + 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=FLAD -D sonar.sources=. -D sonar.host.url=https://codefirst.iut.uca.fr/sonar + depends_on: [ app-build ] From 53b0a30ce47b8776d40640f55faf34bd33344c10 Mon Sep 17 00:00:00 2001 From: Emre KARTAL Date: Sat, 11 Feb 2023 18:42:16 +0100 Subject: [PATCH 02/12] =?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, 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index bbd31e8..b115581 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,8 +11,6 @@ steps: # build CONTAINER for app-build on flutter IMAGE - name: app-build image: node:17.9.0 - environment: - - NODE_ENV=production commands: - cd ./src/FLAD/ - npm run build From f9694b0d4532d1c6e44da2103fc3d509c0c0112a Mon Sep 17 00:00:00 2001 From: Emre KARTAL Date: Sun, 12 Feb 2023 13:24:31 +0100 Subject: [PATCH 03/12] =?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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index b115581..faada1c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,7 +13,8 @@ steps: image: node:17.9.0 commands: - cd ./src/FLAD/ - - npm run build + - npm install expo-cli + - npx expo start # build CONTAINER for sonar on flutter IMAGE - name: code-analysis image: node:17.9.0 From e20a05c2d5945e5fcd61edcd496cb871d7a65b14 Mon Sep 17 00:00:00 2001 From: Emre KARTAL Date: Sun, 12 Feb 2023 13:30:14 +0100 Subject: [PATCH 04/12] =?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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index faada1c..ad338c2 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,14 +10,15 @@ trigger: steps: # build CONTAINER for app-build on flutter IMAGE - name: app-build - image: node:17.9.0 + image: node:latest commands: - cd ./src/FLAD/ - npm install expo-cli - - npx expo start + - npm install + - npx react-native run-ios # build CONTAINER for sonar on flutter IMAGE - name: code-analysis - image: node:17.9.0 + image: node:latest environment: SONAR_TOKEN: from_secret: SONAR_TOKEN From dc4e9b346fea6ff47576ac22d784d299541e0143 Mon Sep 17 00:00:00 2001 From: Emre KARTAL Date: Sun, 12 Feb 2023 13:32:43 +0100 Subject: [PATCH 05/12] =?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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index ad338c2..51410aa 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,7 +15,8 @@ steps: - cd ./src/FLAD/ - npm install expo-cli - npm install - - npx react-native run-ios + - npx expo start + - w # build CONTAINER for sonar on flutter IMAGE - name: code-analysis image: node:latest From 52567faae8c9f39960435c96c04006b3054ccb8a Mon Sep 17 00:00:00 2001 From: Emre KARTAL Date: Sun, 12 Feb 2023 13:42:07 +0100 Subject: [PATCH 06/12] =?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 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 51410aa..111bee3 100644 --- a/.drone.yml +++ b/.drone.yml @@ -8,16 +8,17 @@ trigger: - push steps: -# build CONTAINER for app-build on flutter IMAGE - name: app-build image: node:latest commands: - - cd ./src/FLAD/ - - npm install expo-cli + - cd ./src/ + - npm install -g react-native-cli - npm install - - npx expo start - - w -# build CONTAINER for sonar on flutter IMAGE + - npx react-native init FLAD --template typescript + - cd FLAD/ + - npm install + - npx react-native run-ios + - name: code-analysis image: node:latest environment: From 4a0c7ca8d63bc4a9b6615aa418d8cdbe630a8166 Mon Sep 17 00:00:00 2001 From: Emre KARTAL Date: Sun, 12 Feb 2023 13:46:17 +0100 Subject: [PATCH 07/12] =?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 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.drone.yml b/.drone.yml index 111bee3..1a33e55 100644 --- a/.drone.yml +++ b/.drone.yml @@ -11,13 +11,12 @@ steps: - name: app-build image: node:latest commands: - - cd ./src/ - - npm install -g react-native-cli + - cd ./src/FLAD/ + - npm install expo-cli + - apk add --no-cache python make g++ - npm install - - npx react-native init FLAD --template typescript - - cd FLAD/ - - npm install - - npx react-native run-ios + - npx expo build:android --type apk --no-publish + - npx expo build:ios --type archive --no-publish - name: code-analysis image: node:latest From 27e44f43c1a4334f592c430f09d099c0801e7c98 Mon Sep 17 00:00:00 2001 From: Emre KARTAL Date: Sun, 12 Feb 2023 13:48:21 +0100 Subject: [PATCH 08/12] =?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 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 1a33e55..f67619a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,10 +13,9 @@ steps: commands: - cd ./src/FLAD/ - npm install expo-cli - - apk add --no-cache python make g++ - npm install - - npx expo build:android --type apk --no-publish - - npx expo build:ios --type archive --no-publish + - npx expo build:android + - npx expo build:ios - name: code-analysis image: node:latest From 4b27f79e550a7eea82e2742fcfbf354b50c33cce Mon Sep 17 00:00:00 2001 From: Emre KARTAL Date: Sun, 12 Feb 2023 13:50:39 +0100 Subject: [PATCH 09/12] =?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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index f67619a..fdbad81 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,8 +14,7 @@ steps: - cd ./src/FLAD/ - npm install expo-cli - npm install - - npx expo build:android - - npx expo build:ios + - npx expo build - name: code-analysis image: node:latest From a264114cf09258654cf76112bd30b115cf44e79d Mon Sep 17 00:00:00 2001 From: Emre KARTAL Date: Sun, 12 Feb 2023 13:54:39 +0100 Subject: [PATCH 10/12] =?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 fdbad81..2610485 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,7 @@ steps: - cd ./src/FLAD/ - npm install expo-cli - npm install - - npx expo build + - npm start - name: code-analysis image: node:latest From 8eba5505e69e700fec7188fbf62ae23c3864018a Mon Sep 17 00:00:00 2001 From: Emre KARTAL Date: Sun, 12 Feb 2023 14:01:16 +0100 Subject: [PATCH 11/12] =?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 2610485..664081e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,7 @@ steps: - cd ./src/FLAD/ - npm install expo-cli - npm install - - npm start + - npm run test - name: code-analysis image: node:latest From 40620829e5c2fe4c61d9b8fa425c60aeb47ba49e Mon Sep 17 00:00:00 2001 From: Emre KARTAL Date: Sun, 12 Feb 2023 14:03:17 +0100 Subject: [PATCH 12/12] =?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 664081e..01bea70 100644 --- a/.drone.yml +++ b/.drone.yml @@ -14,7 +14,7 @@ steps: - cd ./src/FLAD/ - npm install expo-cli - npm install - - npm run test + - npm run - name: code-analysis image: node:latest