parent
f25136765a
commit
bc6df204bc
@ -0,0 +1,26 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: default
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
- push
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: sonar-analysis
|
||||||
|
image: hub.codefirst.iut.uca.fr/camille.petitalot/drone-sonarplugin-reactnative:latest
|
||||||
|
commands:
|
||||||
|
- npm install
|
||||||
|
- npm run test:coverage
|
||||||
|
- ls ./coverage
|
||||||
|
- sonar-scanner
|
||||||
|
-Dsonar.projectKey=AD_multiplat
|
||||||
|
-Dsonar.sources=.
|
||||||
|
-Dsonar.host.url=$${PLUGIN_SONAR_HOST}
|
||||||
|
-Dsonar.login=$${PLUGIN_SONAR_TOKEN}
|
||||||
|
-Dsonar.javascript.lcov.reportPaths=./coverage/lcov.info
|
||||||
|
-Dsonar.exclusions=**/lcov-report/**
|
||||||
|
settings:
|
||||||
|
sonar_host: https://codefirst.iut.uca.fr/sonar/
|
||||||
|
sonar_token:
|
||||||
|
from_secret: SONAR_TOKEN
|
@ -1,2 +1,20 @@
|
|||||||
# AD_multiplat
|
[](https://codefirst.iut.uca.fr/alexis.drai/AD_multiplat)
|
||||||
|
[](https://codefirst.iut.uca.fr/sonar/dashboard?id=AD_multiplat)
|
||||||
|
|
||||||
|
[](https://codefirst.iut.uca.fr/sonar/dashboard?id=AD_multiplat)
|
||||||
|
[](https://codefirst.iut.uca.fr/sonar/dashboard?id=AD_multiplat)
|
||||||
|
[](https://codefirst.iut.uca.fr/sonar/dashboard?id=AD_multiplat)
|
||||||
|
|
||||||
|
[](https://codefirst.iut.uca.fr/sonar/dashboard?id=AD_multiplat)
|
||||||
|
[](https://codefirst.iut.uca.fr/sonar/dashboard?id=AD_multiplat)
|
||||||
|
|
||||||
|
[](https://codefirst.iut.uca.fr/sonar/dashboard?id=AD_multiplat)
|
||||||
|
[](https://codefirst.iut.uca.fr/sonar/dashboard?id=AD_multiplat)
|
||||||
|
[](https://codefirst.iut.uca.fr/sonar/dashboard?id=AD_multiplat)
|
||||||
|
[](https://codefirst.iut.uca.fr/sonar/dashboard?id=AD_multiplat)
|
||||||
|
[](https://codefirst.iut.uca.fr/sonar/dashboard?id=AD_multiplat)
|
||||||
|
[](https://codefirst.iut.uca.fr/sonar/dashboard?id=AD_multiplat)
|
||||||
|
|
||||||
|
# AD_ReactNative
|
||||||
|
|
||||||
|
A React Native app for education purposes. Refer to [instructions here](https://react-native-courses.clubinfo-clermont.fr/docs/notation).
|
@ -0,0 +1,10 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import {render} from '@testing-library/react-native';
|
||||||
|
import Greeting from './Greeting';
|
||||||
|
|
||||||
|
describe('Greeting component', () => {
|
||||||
|
it('renders Hello, World! text', () => {
|
||||||
|
const {getByText} = render(<Greeting/>);
|
||||||
|
expect(getByText('Hello, World!')).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
@ -0,0 +1,6 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import {Text} from 'react-native';
|
||||||
|
|
||||||
|
export default function Greeting() {
|
||||||
|
return (<Text>Hello, World!</Text>);
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue