parent
495bdb9d3b
commit
81d913fc7a
@ -1,26 +1,26 @@
|
|||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: sonar-analysis
|
- name: sonar-analysis
|
||||||
image: hub.codefirst.iut.uca.fr/camille.petitalot/drone-sonarplugin-reactnative:latest
|
image: hub.codefirst.iut.uca.fr/camille.petitalot/drone-sonarplugin-reactnative:latest
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- yarn install
|
||||||
- npm run test:coverage
|
- yarn test:coverage
|
||||||
- ls ./coverage
|
- ls ./coverage
|
||||||
- sonar-scanner
|
- sonar-scanner
|
||||||
-Dsonar.projectKey=AD_multiplat
|
-Dsonar.projectKey=AD_multiplat
|
||||||
-Dsonar.sources=.
|
-Dsonar.sources=.
|
||||||
-Dsonar.host.url=$${PLUGIN_SONAR_HOST}
|
-Dsonar.host.url=$${PLUGIN_SONAR_HOST}
|
||||||
-Dsonar.login=$${PLUGIN_SONAR_TOKEN}
|
-Dsonar.login=$${PLUGIN_SONAR_TOKEN}
|
||||||
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
|
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
|
||||||
-Dsonar.exclusions=**/*.test.tsx,**/*.test.ts,**/*.spec.tsx,**/*.spec.ts,**/lcov-report/**
|
-Dsonar.exclusions=**/*.test.tsx,**/*.test.ts,**/*.spec.tsx,**/*.spec.ts,**/lcov-report/**,**/constants.ts,config.ts,babel.config.ts
|
||||||
settings:
|
settings:
|
||||||
sonar_host: https://codefirst.iut.uca.fr/sonar/
|
sonar_host: https://codefirst.iut.uca.fr/sonar/
|
||||||
sonar_token:
|
sonar_token:
|
||||||
from_secret: SONAR_TOKEN
|
from_secret: SONAR_TOKEN
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<component name="ProjectRunConfigurationManager">
|
<component name="ProjectRunConfigurationManager">
|
||||||
<configuration default="false" name="start" type="js.build_tools.npm" nameIsGenerated="true">
|
<configuration default="false" name="start" type="js.build_tools.npm" nameIsGenerated="true">
|
||||||
<package-json value="$PROJECT_DIR$/package.json" />
|
<package-json value="$PROJECT_DIR$/package.json"/>
|
||||||
<command value="run" />
|
<command value="run"/>
|
||||||
<scripts>
|
<scripts>
|
||||||
<script value="start" />
|
<script value="start"/>
|
||||||
</scripts>
|
</scripts>
|
||||||
<node-interpreter value="project" />
|
<node-interpreter value="project"/>
|
||||||
<package-manager value="C:\Users\draia\AppData\Roaming\npm\node_modules\npm" />
|
<package-manager value="yarn"/>
|
||||||
<envs />
|
<envs/>
|
||||||
<method v="2" />
|
<method v="2"/>
|
||||||
</configuration>
|
</configuration>
|
||||||
</component>
|
</component>
|
||||||
|
Loading…
Reference in new issue